Kevin Campbell
New member
- Local time
- Today, 15:54
- Joined
- Feb 23, 2005
- Messages
- 5
i'd like to develop some input validation and handling for a form im working on.
I have one form consisting of only table for that form (input into only one table).
They must input data in one field on the form (required). I have created a simple add button that only adds a new record to the form. Well when you click on the add new button, it creates a new record with a new p.k. in the table. However, users can sometimes not click on the add new button or lets say they navigate to the nth record in the set, if they move into the nth+1 record of the set and start entering data, they'll get an error message saying that the record does not have a p.k. associated with it.
i was thinking of developing some sort of module or vba code, my idea:
if the current record < total record count & the pk.value = null
= execute a new record command for the user when
this code would be contained in the next last record button. Thoughts?
Implementation? Thanks in advance!
I have one form consisting of only table for that form (input into only one table).
They must input data in one field on the form (required). I have created a simple add button that only adds a new record to the form. Well when you click on the add new button, it creates a new record with a new p.k. in the table. However, users can sometimes not click on the add new button or lets say they navigate to the nth record in the set, if they move into the nth+1 record of the set and start entering data, they'll get an error message saying that the record does not have a p.k. associated with it.
i was thinking of developing some sort of module or vba code, my idea:
if the current record < total record count & the pk.value = null
= execute a new record command for the user when
this code would be contained in the next last record button. Thoughts?
Implementation? Thanks in advance!