How to get a Auto Number column value from a table in MS Access. I need the value to store it in another table. For ex,
Table1: Table2:
Id value CId City
1 aaa 1 abc
2 bbb
Id in Table1 is auto numbered, where as CId in Table2 is not and note that not all values in table1 are present in table2. I'm creating a form to store value, city in respective tables. How do I get the auto number value so that I can store it as CId in table2. So, if new value is entered it would take the Id 3, I require the Id 3 to store in Table2
Also, I can't go with Form Wizard option as, I dont want all the records in the table to be visible. I just require a blank form to save new data. Please help me out in this. Thank you
So, if new value is entered it would take the Id 3, I require the Id 3 to store in Table2All new value will be stored totable2? What aboutINSERT INTO....fortable1thenDMAX()to get last value from auto id field and then anotherINSERT INTO...for table2. - Harun24HR