E
elliesmith
Hello
I am relatively new to creating databases. I can create the table,
understand (??) PK and FK in theory. Here's my issue:
I have a main table: [all_document_info] with fields
[PK]
[reference_number]
[last_ref_used]
[from_short]
[from_long]
I have a second table [dept_refs_name] that contains the data needed in the
above fields:
[PKrefnumber]
[dept_acronym] relates to the from_short field
[full_dept_name1] relates to the from_long field
[ref_number] that relates to the reference_number field above.
This is where my limited knowledge runs out. from_short is a drop down and I
want the corresponding LAST data for that field input into from_long and
last_ref_used. So the table will be sorted by PK. It is a one to many
relationship (I think) or "if [all_document_info.from_short]=[dept_refs_name.
dept_acronym] then [all_document_info.from_long]=[dept_refs_name.
full_dept_name1] and [all_document_info.last_ref_used]=[dept_refs_name.
referene_number]
The form will (eventually) allow the user to select the (from) department
acronym that sent the correspondence and automatically see the long
department name and the number of the last memo received from that department.
The user will then be able to fill in the new information for the new piece
of correspondence. Each department will have many ref_numbers, but only one
acronym and long name.
The last_ref_used and from_long fields are dependent one what the user
chooses from_short chosen from the drop down.
Can someone explain what I do next? I am truly stuck. Thanks Ellie
I am relatively new to creating databases. I can create the table,
understand (??) PK and FK in theory. Here's my issue:
I have a main table: [all_document_info] with fields
[PK]
[reference_number]
[last_ref_used]
[from_short]
[from_long]
I have a second table [dept_refs_name] that contains the data needed in the
above fields:
[PKrefnumber]
[dept_acronym] relates to the from_short field
[full_dept_name1] relates to the from_long field
[ref_number] that relates to the reference_number field above.
This is where my limited knowledge runs out. from_short is a drop down and I
want the corresponding LAST data for that field input into from_long and
last_ref_used. So the table will be sorted by PK. It is a one to many
relationship (I think) or "if [all_document_info.from_short]=[dept_refs_name.
dept_acronym] then [all_document_info.from_long]=[dept_refs_name.
full_dept_name1] and [all_document_info.last_ref_used]=[dept_refs_name.
referene_number]
The form will (eventually) allow the user to select the (from) department
acronym that sent the correspondence and automatically see the long
department name and the number of the last memo received from that department.
The user will then be able to fill in the new information for the new piece
of correspondence. Each department will have many ref_numbers, but only one
acronym and long name.
The last_ref_used and from_long fields are dependent one what the user
chooses from_short chosen from the drop down.
Can someone explain what I do next? I am truly stuck. Thanks Ellie