Dear Ms.Access most powerful experts,
I have a problem over which I have lost a lot of hair trying to solve. It may be something simple to you.
I have a table containing list of items and form to enter New items. (a sample database is attached)
Each item has an Id (ItemID), and when entering a new item in the form I would like the last ItemID to be in the default value of the new record ItemID or even better to be the last itemID+1.
Right now what I do, is I run a query that I created to return the Max value of the ItemID and then I enter it manually into the ItemId of the new record. This works but I don't think it's the proper way to do it.
I have used the Max() function in the ItemId default value in the form but it returns an error, I tried the Dmax function but also gives an error! AGghh! What am I doing wrong??
Your input is extremely appreciated.
Thanks
Rami
I have a problem over which I have lost a lot of hair trying to solve. It may be something simple to you.
I have a table containing list of items and form to enter New items. (a sample database is attached)
Each item has an Id (ItemID), and when entering a new item in the form I would like the last ItemID to be in the default value of the new record ItemID or even better to be the last itemID+1.
Right now what I do, is I run a query that I created to return the Max value of the ItemID and then I enter it manually into the ItemId of the new record. This works but I don't think it's the proper way to do it.
I have used the Max() function in the ItemId default value in the form but it returns an error, I tried the Dmax function but also gives an error! AGghh! What am I doing wrong??
Your input is extremely appreciated.
Thanks
Rami