MarcCastignani
New member
- Local time
- Today, 20:17
- Joined
- May 16, 2024
- Messages
- 14
how do i add a new record to existing ID on form. so basically vba for the way you would add a record to a sub form.
Show us the fields in these tables and the relationships between them please. I think the problem is starting to look more like a table design issue than a data entry issue.Thanks for the response, The easy way would be to just use a subform which is what iv done. This is the set up:
table 1 Employees
table 2 Clients
table 3 Notes
two cascading combo boxes, combo 1 is employees, combo 2 is clients.
list box with the notes for each client, If i double click on the note in the list box a second form opens with the notes field. The problem i have now is to enter a note for the person I double clicked on. the new note button click code on the add new record is
docmd.gotorecord, acNewRecord.
The problem is that it wants the client id, its making a completely new record not simply adding the record to the client, hence many notes for each client.
Using a sub form is no problem
Will see if i can do that. could you give an example of the openargs? thanksIf you insist on adding a new note via a separate form, then you could pass the id of the parent in to the form via openargs.
I could, but Google could do it much better.Will see if i can do that. could you give an example of the openargs? thanks
Why not just use a Main Form and Subforms?Will see if i can do that. could you give an example of the openargs? thanks
Thank you. I think the most effective way to do this is to design data entry as a main form bound to the Client table, with two subforms. One of those subforms allows you to add one or more employees to the employees table for each client. The other allows you to add one or more notes to the notes table for each client.Please see attached
Please see attached