I'm using MS Access 2010 and VS Express 2012. I'm trying to design a windows form that would insert data into two different tables. The tables are a parent and child the first table (Parent) includes the following field:
expenseID
Date
Total
Datestamp
the child table includes the details of the expenses while a single record in the parent table might include multi records in the child table, and here are the fields:
DetailsID
expenseID
Price
Payment
Items
What I'm looking for here is:
1- I was able to include the parent table in the form, but I have no idea to get the child tied back to the parent so the ID would cascade to the child.
2- For the child records how to add new rows in the form to add more data once a row had been populated.
3- Finally, how to insert the data back in the tables in order Parent then child.
I do like to apologise for the number of questions I posted. Thank you in advance for your help.
expenseID
Date
Total
Datestamp
the child table includes the details of the expenses while a single record in the parent table might include multi records in the child table, and here are the fields:
DetailsID
expenseID
Price
Payment
Items
What I'm looking for here is:
1- I was able to include the parent table in the form, but I have no idea to get the child tied back to the parent so the ID would cascade to the child.
2- For the child records how to add new rows in the form to add more data once a row had been populated.
3- Finally, how to insert the data back in the tables in order Parent then child.
I do like to apologise for the number of questions I posted. Thank you in advance for your help.