I have a combo box in which the user selects the client he want to update.
The top of the form has descriptive data for the client ie. name address etc.
The linked subform (on ClientId), below that descriptive data, displays all of the visits the client has made to our pantry. The fields are:
date attended
# members in household
How do I move the cursor, into the subform called "dates of distribution", to add a new record for the clients current visit. I would like the cursor to be at the new record position for the data entry.
Currently, the user must scroll down to the last record entered to make the new entry.
I tried to set focus to the new record, after the last record in the subform, that is displayed with no success.
My problem is where to put the event procedure so that when the client is selected, it will go to the subform, after the last record that was previously entered is displayed.
I tried goto record new , set focus commands etc.
Which event should I use and what commands, in what order, do I need to code to make this work.
All thoughts will be greatly appreciated. I am new to access and VBA.
The top of the form has descriptive data for the client ie. name address etc.
The linked subform (on ClientId), below that descriptive data, displays all of the visits the client has made to our pantry. The fields are:
date attended
# members in household
How do I move the cursor, into the subform called "dates of distribution", to add a new record for the clients current visit. I would like the cursor to be at the new record position for the data entry.
Currently, the user must scroll down to the last record entered to make the new entry.
I tried to set focus to the new record, after the last record in the subform, that is displayed with no success.
My problem is where to put the event procedure so that when the client is selected, it will go to the subform, after the last record that was previously entered is displayed.
I tried goto record new , set focus commands etc.
Which event should I use and what commands, in what order, do I need to code to make this work.
All thoughts will be greatly appreciated. I am new to access and VBA.