dbTalk Databases Forums  

Storing data

comp.database.ms-access comp.database.ms-access


Discuss Storing data in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Oswald
 
Posts: n/a

Default Storing data - 11-02-2003 , 08:56 AM






Hey,

I have to store a history of different entities (pc's, servers, ...)

For instance:
entity: pc15
date event
1/10/03 software update
5/12/03 new hard drive
....

How can I store this in access? What would the table look like? I had put a
date and an event field in my history table, but then I could only store 1
event... I could put 10 dates and events, but I since I don't know how many
events will happen to an entity, I'm a little lost...

Thanks,
Oswald



Reply With Quote
  #2  
Old   
Bradley
 
Posts: n/a

Default Re: Storing data - 11-02-2003 , 03:54 PM






You need one table for your "entities" and another for your event history..

eg

tblEntity
-----------
EntityID Autonumber
EntityName Text

tblHistory
-------------
EntityID Number (Long)
HistoryTimestamp Date/Time ( default = Now() )
HistoryNotes Memo

Then create a relationship between the two tables on the EntityID field.
(one to many)

Hope that gives you a start....

--
Bradley
Software Developer www.hrsystems.com.au
A Christian Response www.pastornet.net.au/response

"Oswald" <fluffster71 (AT) hotmail (DOT) com> wrote

Quote:
Hey,

I have to store a history of different entities (pc's, servers, ...)

For instance:
entity: pc15
date event
1/10/03 software update
5/12/03 new hard drive
...

How can I store this in access? What would the table look like? I had put
a
date and an event field in my history table, but then I could only store 1
event... I could put 10 dates and events, but I since I don't know how
many
events will happen to an entity, I'm a little lost...

Thanks,
Oswald





Reply With Quote
  #3  
Old   
Oswald
 
Posts: n/a

Default Re: Storing data - 11-03-2003 , 09:07 AM



Yes,

but there are different tables with entities... tblPc's, tblServers,
tblHubs, ... all of the servers or pc's or... have a history... so do I have
to link every table to my history table? Because if I do that, whenever I
try to log an event in my history table for a pc, it will tell me that there
are no corresponding records in servers or hubs... (referential integrity)

Do I have to not use referential integrity, or make an instance of
tblHistory for every table I want to link to it?

Thanks,
Oswald


"Bradley" <bradley (AT) REMOVETHIScomcen (DOT) com.au> wrote

Quote:
You need one table for your "entities" and another for your event
history..

eg

tblEntity
-----------
EntityID Autonumber
EntityName Text

tblHistory
-------------
EntityID Number (Long)
HistoryTimestamp Date/Time ( default = Now() )
HistoryNotes Memo

Then create a relationship between the two tables on the EntityID field.
(one to many)

Hope that gives you a start....

--
Bradley
Software Developer www.hrsystems.com.au
A Christian Response www.pastornet.net.au/response

"Oswald" <fluffster71 (AT) hotmail (DOT) com> wrote in message
news:3fa51c24$0$1869$ba620e4c (AT) reader0 (DOT) news.skynet.be...
Hey,

I have to store a history of different entities (pc's, servers, ...)

For instance:
entity: pc15
date event
1/10/03 software update
5/12/03 new hard drive
...

How can I store this in access? What would the table look like? I had
put
a
date and an event field in my history table, but then I could only store
1
event... I could put 10 dates and events, but I since I don't know how
many
events will happen to an entity, I'm a little lost...

Thanks,
Oswald







Reply With Quote
  #4  
Old   
Bradley
 
Posts: n/a

Default Re: Storing data - 11-04-2003 , 03:43 PM



Why do you need to separate each entity into a separate table? Why not just
add a field called EntityType? (and perhaps make your other fields more
generic?)

--
Bradley
Software Developer www.hrsystems.com.au
A Christian Response www.pastornet.net.au/response


"Oswald" <fluffster71 (AT) hotmail (DOT) com> wrote

Quote:
Yes,

but there are different tables with entities... tblPc's, tblServers,
tblHubs, ... all of the servers or pc's or... have a history... so do I
have
to link every table to my history table? Because if I do that, whenever I
try to log an event in my history table for a pc, it will tell me that
there
are no corresponding records in servers or hubs... (referential integrity)

Do I have to not use referential integrity, or make an instance of
tblHistory for every table I want to link to it?

Thanks,
Oswald


"Bradley" <bradley (AT) REMOVETHIScomcen (DOT) com.au> wrote in message
news:S2fpb.176019$bo1.58408 (AT) news-server (DOT) bigpond.net.au...
You need one table for your "entities" and another for your event
history..

eg

tblEntity
-----------
EntityID Autonumber
EntityName Text

tblHistory
-------------
EntityID Number (Long)
HistoryTimestamp Date/Time ( default = Now() )
HistoryNotes Memo

Then create a relationship between the two tables on the EntityID field.
(one to many)

Hope that gives you a start....

--
Bradley
Software Developer www.hrsystems.com.au
A Christian Response www.pastornet.net.au/response

"Oswald" <fluffster71 (AT) hotmail (DOT) com> wrote in message
news:3fa51c24$0$1869$ba620e4c (AT) reader0 (DOT) news.skynet.be...
Hey,

I have to store a history of different entities (pc's, servers, ...)

For instance:
entity: pc15
date event
1/10/03 software update
5/12/03 new hard drive
...

How can I store this in access? What would the table look like? I had
put
a
date and an event field in my history table, but then I could only
store
1
event... I could put 10 dates and events, but I since I don't know how
many
events will happen to an entity, I'm a little lost...

Thanks,
Oswald









Reply With Quote
  #5  
Old   
Oswald
 
Posts: n/a

Default Re: Storing data - 11-05-2003 , 01:44 PM



Hey,

because I need to store a shitload of information about every entity, not
just a history.

The history is just a little extra. So I now have a PC form with al the info
and a subform history with all the 'historylines'. But whenever I enter a
new event in a historyline, it says there is no related field in servers,
and vice versa... Can I just not use referential integrity between the
history table and the other entitytables? Or do I have to use a referential
integrity relationship between different instances of the history table?

I hope this makes sense... I don't know all the exact words in English...

Thanks so far,
Oswald


"Bradley" <bradley (AT) REMOVETHIScomcen (DOT) com.au> wrote

Quote:
Why do you need to separate each entity into a separate table? Why not
just
add a field called EntityType? (and perhaps make your other fields more
generic?)

--
Bradley
Software Developer www.hrsystems.com.au
A Christian Response www.pastornet.net.au/response


"Oswald" <fluffster71 (AT) hotmail (DOT) com> wrote in message
news:3fa6703a$0$22168$ba620e4c (AT) reader3 (DOT) news.skynet.be...
Yes,

but there are different tables with entities... tblPc's, tblServers,
tblHubs, ... all of the servers or pc's or... have a history... so do I
have
to link every table to my history table? Because if I do that, whenever
I
try to log an event in my history table for a pc, it will tell me that
there
are no corresponding records in servers or hubs... (referential
integrity)

Do I have to not use referential integrity, or make an instance of
tblHistory for every table I want to link to it?

Thanks,
Oswald


"Bradley" <bradley (AT) REMOVETHIScomcen (DOT) com.au> wrote in message
news:S2fpb.176019$bo1.58408 (AT) news-server (DOT) bigpond.net.au...
You need one table for your "entities" and another for your event
history..

eg

tblEntity
-----------
EntityID Autonumber
EntityName Text

tblHistory
-------------
EntityID Number (Long)
HistoryTimestamp Date/Time ( default = Now() )
HistoryNotes Memo

Then create a relationship between the two tables on the EntityID
field.
(one to many)

Hope that gives you a start....

--
Bradley
Software Developer www.hrsystems.com.au
A Christian Response www.pastornet.net.au/response

"Oswald" <fluffster71 (AT) hotmail (DOT) com> wrote in message
news:3fa51c24$0$1869$ba620e4c (AT) reader0 (DOT) news.skynet.be...
Hey,

I have to store a history of different entities (pc's, servers, ...)

For instance:
entity: pc15
date event
1/10/03 software update
5/12/03 new hard drive
...

How can I store this in access? What would the table look like? I
had
put
a
date and an event field in my history table, but then I could only
store
1
event... I could put 10 dates and events, but I since I don't know
how
many
events will happen to an entity, I'm a little lost...

Thanks,
Oswald











Reply With Quote
  #6  
Old   
Oswald
 
Posts: n/a

Default Re: Storing data - 11-05-2003 , 02:19 PM



Hey,

tried the different instances of the same table, but that doesn't work...
guess I need to lose the ref integrity then?

Oswald


"Oswald" <fluffster71 (AT) hotmail (DOT) com> wrote

Quote:
Hey,

because I need to store a shitload of information about every entity, not
just a history.

The history is just a little extra. So I now have a PC form with al the
info
and a subform history with all the 'historylines'. But whenever I enter a
new event in a historyline, it says there is no related field in servers,
and vice versa... Can I just not use referential integrity between the
history table and the other entitytables? Or do I have to use a
referential
integrity relationship between different instances of the history table?

I hope this makes sense... I don't know all the exact words in English...

Thanks so far,
Oswald


"Bradley" <bradley (AT) REMOVETHIScomcen (DOT) com.au> wrote in message
news:h4Vpb.178737$bo1.121286 (AT) news-server (DOT) bigpond.net.au...
Why do you need to separate each entity into a separate table? Why not
just
add a field called EntityType? (and perhaps make your other fields more
generic?)

--
Bradley
Software Developer www.hrsystems.com.au
A Christian Response www.pastornet.net.au/response


"Oswald" <fluffster71 (AT) hotmail (DOT) com> wrote in message
news:3fa6703a$0$22168$ba620e4c (AT) reader3 (DOT) news.skynet.be...
Yes,

but there are different tables with entities... tblPc's, tblServers,
tblHubs, ... all of the servers or pc's or... have a history... so do
I
have
to link every table to my history table? Because if I do that,
whenever
I
try to log an event in my history table for a pc, it will tell me that
there
are no corresponding records in servers or hubs... (referential
integrity)

Do I have to not use referential integrity, or make an instance of
tblHistory for every table I want to link to it?

Thanks,
Oswald


"Bradley" <bradley (AT) REMOVETHIScomcen (DOT) com.au> wrote in message
news:S2fpb.176019$bo1.58408 (AT) news-server (DOT) bigpond.net.au...
You need one table for your "entities" and another for your event
history..

eg

tblEntity
-----------
EntityID Autonumber
EntityName Text

tblHistory
-------------
EntityID Number (Long)
HistoryTimestamp Date/Time ( default = Now() )
HistoryNotes Memo

Then create a relationship between the two tables on the EntityID
field.
(one to many)

Hope that gives you a start....

--
Bradley
Software Developer www.hrsystems.com.au
A Christian Response www.pastornet.net.au/response

"Oswald" <fluffster71 (AT) hotmail (DOT) com> wrote in message
news:3fa51c24$0$1869$ba620e4c (AT) reader0 (DOT) news.skynet.be...
Hey,

I have to store a history of different entities (pc's, servers,
....)

For instance:
entity: pc15
date event
1/10/03 software update
5/12/03 new hard drive
...

How can I store this in access? What would the table look like? I
had
put
a
date and an event field in my history table, but then I could only
store
1
event... I could put 10 dates and events, but I since I don't know
how
many
events will happen to an entity, I'm a little lost...

Thanks,
Oswald













Reply With Quote
  #7  
Old   
Sidney Linkers
 
Posts: n/a

Default Re: Storing data - 11-09-2003 , 02:03 AM



Hi Oswald,

It seems you are just starting to creat a database. The following articles
maybe helpfull when you want to design a database.

http://support.microsoft.com/search/...false&numDays=

Goodluck!

Sid.

"Oswald" <fluffster71 (AT) hotmail (DOT) com> schreef in bericht
news:3fa51c24$0$1869$ba620e4c (AT) reader0 (DOT) news.skynet.be...
Quote:
Hey,

I have to store a history of different entities (pc's, servers, ...)

For instance:
entity: pc15
date event
1/10/03 software update
5/12/03 new hard drive
...

How can I store this in access? What would the table look like? I had put
a
date and an event field in my history table, but then I could only store 1
event... I could put 10 dates and events, but I since I don't know how
many
events will happen to an entity, I'm a little lost...

Thanks,
Oswald





Reply With Quote
  #8  
Old   
Oswald
 
Posts: n/a

Default Re: storing data - 11-16-2003 , 04:29 AM



Hey,

I have deleted all my relationships and used vb.net to access my database.
It works now. Guess it just wasn't possible in access.

Thanks,
Oswald

From: "Oswald" <fluffster71 (AT) hotmail (DOT) com>
Subject: Re: Storing data
Date: woensdag 5 november 2003 21:19

Hey,

tried the different instances of the same table, but that doesn't work...
guess I need to lose the ref integrity then?

Oswald


"Oswald" <fluffster71 (AT) hotmail (DOT) com> wrote

Quote:
Hey,

because I need to store a shitload of information about every entity, not
just a history.

The history is just a little extra. So I now have a PC form with al the
info
and a subform history with all the 'historylines'. But whenever I enter a
new event in a historyline, it says there is no related field in servers,
and vice versa... Can I just not use referential integrity between the
history table and the other entitytables? Or do I have to use a
referential
integrity relationship between different instances of the history table?

I hope this makes sense... I don't know all the exact words in English...

Thanks so far,
Oswald


"Bradley" <bradley (AT) REMOVETHIScomcen (DOT) com.au> wrote in message
news:h4Vpb.178737$bo1.121286 (AT) news-server (DOT) bigpond.net.au...
Why do you need to separate each entity into a separate table? Why not
just
add a field called EntityType? (and perhaps make your other fields more
generic?)

--
Bradley
Software Developer www.hrsystems.com.au
A Christian Response www.pastornet.net.au/response


"Oswald" <fluffster71 (AT) hotmail (DOT) com> wrote in message
news:3fa6703a$0$22168$ba620e4c (AT) reader3 (DOT) news.skynet.be...
Yes,

but there are different tables with entities... tblPc's, tblServers,
tblHubs, ... all of the servers or pc's or... have a history... so do
I
have
to link every table to my history table? Because if I do that,
whenever
I
try to log an event in my history table for a pc, it will tell me that
there
are no corresponding records in servers or hubs... (referential
integrity)

Do I have to not use referential integrity, or make an instance of
tblHistory for every table I want to link to it?

Thanks,
Oswald


"Bradley" <bradley (AT) REMOVETHIScomcen (DOT) com.au> wrote in message
news:S2fpb.176019$bo1.58408 (AT) news-server (DOT) bigpond.net.au...
You need one table for your "entities" and another for your event
history..

eg

tblEntity
-----------
EntityID Autonumber
EntityName Text

tblHistory
-------------
EntityID Number (Long)
HistoryTimestamp Date/Time ( default = Now() )
HistoryNotes Memo

Then create a relationship between the two tables on the EntityID
field.
(one to many)

Hope that gives you a start....

--
Bradley
Software Developer www.hrsystems.com.au
A Christian Response www.pastornet.net.au/response

"Oswald" <fluffster71 (AT) hotmail (DOT) com> wrote in message
news:3fa51c24$0$1869$ba620e4c (AT) reader0 (DOT) news.skynet.be...
Hey,

I have to store a history of different entities (pc's, servers,
....)

For instance:
entity: pc15
date event
1/10/03 software update
5/12/03 new hard drive
...

How can I store this in access? What would the table look like? I
had
put
a
date and an event field in my history table, but then I could only
store
1
event... I could put 10 dates and events, but I since I don't know
how
many
events will happen to an entity, I'm a little lost...

Thanks,
Oswald














Reply With Quote
  #9  
Old   
Bradley
 
Posts: n/a

Default Re: Storing data - 11-26-2003 , 04:29 PM



Are you setting the value of the ID field for each history line?

I usually setup the DefaultValue to get the parent table ID automatically
from a form for each new record.

--
Bradley
Software Developer www.hrsystems.com.au
A Christian Response www.pastornet.net.au/response

"Oswald" <fluffster71 (AT) hotmail (DOT) com> wrote

Quote:
Hey,

because I need to store a shitload of information about every entity, not
just a history.

The history is just a little extra. So I now have a PC form with al the
info
and a subform history with all the 'historylines'. But whenever I enter a
new event in a historyline, it says there is no related field in servers,
and vice versa... Can I just not use referential integrity between the
history table and the other entitytables? Or do I have to use a
referential
integrity relationship between different instances of the history table?

I hope this makes sense... I don't know all the exact words in English...

Thanks so far,
Oswald


"Bradley" <bradley (AT) REMOVETHIScomcen (DOT) com.au> wrote in message
news:h4Vpb.178737$bo1.121286 (AT) news-server (DOT) bigpond.net.au...
Why do you need to separate each entity into a separate table? Why not
just
add a field called EntityType? (and perhaps make your other fields more
generic?)

--
Bradley
Software Developer www.hrsystems.com.au
A Christian Response www.pastornet.net.au/response


"Oswald" <fluffster71 (AT) hotmail (DOT) com> wrote in message
news:3fa6703a$0$22168$ba620e4c (AT) reader3 (DOT) news.skynet.be...
Yes,

but there are different tables with entities... tblPc's, tblServers,
tblHubs, ... all of the servers or pc's or... have a history... so do
I
have
to link every table to my history table? Because if I do that,
whenever
I
try to log an event in my history table for a pc, it will tell me that
there
are no corresponding records in servers or hubs... (referential
integrity)

Do I have to not use referential integrity, or make an instance of
tblHistory for every table I want to link to it?

Thanks,
Oswald


"Bradley" <bradley (AT) REMOVETHIScomcen (DOT) com.au> wrote in message
news:S2fpb.176019$bo1.58408 (AT) news-server (DOT) bigpond.net.au...
You need one table for your "entities" and another for your event
history..

eg

tblEntity
-----------
EntityID Autonumber
EntityName Text

tblHistory
-------------
EntityID Number (Long)
HistoryTimestamp Date/Time ( default = Now() )
HistoryNotes Memo

Then create a relationship between the two tables on the EntityID
field.
(one to many)

Hope that gives you a start....

--
Bradley
Software Developer www.hrsystems.com.au
A Christian Response www.pastornet.net.au/response

"Oswald" <fluffster71 (AT) hotmail (DOT) com> wrote in message
news:3fa51c24$0$1869$ba620e4c (AT) reader0 (DOT) news.skynet.be...
Hey,

I have to store a history of different entities (pc's, servers,
....)

For instance:
entity: pc15
date event
1/10/03 software update
5/12/03 new hard drive
...

How can I store this in access? What would the table look like? I
had
put
a
date and an event field in my history table, but then I could only
store
1
event... I could put 10 dates and events, but I since I don't know
how
many
events will happen to an entity, I'm a little lost...

Thanks,
Oswald













Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.