I have a form, Form_Add_Record, which contains a date(mm/yy) and position field. When the date is filled in and the user tabs to the position field I want to fill in the position with the the next position for that month (i.e.: records for that date + 1).
I know the statement I need:
SELECT COUNT(*) + 1 AS position FROM alldata
WHERE Alldata!date = date
I just don't know how to get it to execute when I want to.
Any suggestions will be gratefully tested.
I know the statement I need:
SELECT COUNT(*) + 1 AS position FROM alldata
WHERE Alldata!date = date
I just don't know how to get it to execute when I want to.
Any suggestions will be gratefully tested.