G
Guest
Good day,
I have a table with the field OrderID that is a primary key linked to other
tables with one too many relationships.
I generate a query based on the information inputed in a main form with
subforms and it does not display the
information unless I go through each subfrom and press enter which makes a
record. Basically I donot want to have the user to do this all the time if
they feel like skippping a subform. Any Idea on how to take care of this so
my query works regardless. I have set all me defaults to Zero on the subforms
hoping this would do the trick however it doesnt.
Hope this makes sense, any help would be appreciated.
For Example: Try This to see what I mean.
Create a Table Called MAIN
Fields/Structure are:
MainID - AutoNumber (Set as Primary Key)
Date - Date/Time
Sales Name - Text
Create another Table Called PressID
Fields /Structure are:
PressID - Number
Description - Text
TotalCost - Currency
Create a relationship between the two MainID to PressID one to many checking
off all three boxes.
Then create a form with the maintable information and the Press table
information as the subform through the wizard.
Only fill in the MainTable information in the form. You will see the PressID
return 1 which is correct (Same as main table)
Generate a query based on this infomation and you will see that nothing
shows up unless you press enter in the PressSubform creating a record. or put
in information.
I have a table with the field OrderID that is a primary key linked to other
tables with one too many relationships.
I generate a query based on the information inputed in a main form with
subforms and it does not display the
information unless I go through each subfrom and press enter which makes a
record. Basically I donot want to have the user to do this all the time if
they feel like skippping a subform. Any Idea on how to take care of this so
my query works regardless. I have set all me defaults to Zero on the subforms
hoping this would do the trick however it doesnt.
Hope this makes sense, any help would be appreciated.
For Example: Try This to see what I mean.
Create a Table Called MAIN
Fields/Structure are:
MainID - AutoNumber (Set as Primary Key)
Date - Date/Time
Sales Name - Text
Create another Table Called PressID
Fields /Structure are:
PressID - Number
Description - Text
TotalCost - Currency
Create a relationship between the two MainID to PressID one to many checking
off all three boxes.
Then create a form with the maintable information and the Press table
information as the subform through the wizard.
Only fill in the MainTable information in the form. You will see the PressID
return 1 which is correct (Same as main table)
Generate a query based on this infomation and you will see that nothing
shows up unless you press enter in the PressSubform creating a record. or put
in information.