I'm stuck on a problem, not knowing the best way to handle it.
I have a form which reads one table. The table has two fields that I'm working with. One is a location and the other is a sequential number.
Currently, I have a combo box that contains the location from the table. I can step through the rows ok, but want to get the numerical value to increment by 1 automatically when I add a record for the location selected. As an example, lets say I have 5 records in the table for London. When I want to add another record for London I want to get the Max value of the number and add 1 to it. This number is not the Key to the table. I have the key set to automatically increment.
I created a Max Value Query that is working correctly, but don't know where to go from there. I am studying about Macros and was able to open the query, but don't know if I'm even heading in the right direction. Should I charge on with the macro or is there a better way to do this?
Help!!!
jdb
I have a form which reads one table. The table has two fields that I'm working with. One is a location and the other is a sequential number.
Currently, I have a combo box that contains the location from the table. I can step through the rows ok, but want to get the numerical value to increment by 1 automatically when I add a record for the location selected. As an example, lets say I have 5 records in the table for London. When I want to add another record for London I want to get the Max value of the number and add 1 to it. This number is not the Key to the table. I have the key set to automatically increment.
I created a Max Value Query that is working correctly, but don't know where to go from there. I am studying about Macros and was able to open the query, but don't know if I'm even heading in the right direction. Should I charge on with the macro or is there a better way to do this?
Help!!!
jdb