Add record to a subform

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

All,

I can't add multiple records to a subform! whenever I try to add a second
record the message for the primary key and duplicated values shows up!

Please help!

Thanks,

Arta
 
If you are trying to add them programmatically, AddNew to the RecordsetClone
of the form.

Example:
With Me.[NameOfYourSubformHere].Form.RecordsetClone
.AddNew
.SomeField = "Hello"
.AnotherField = 99
.MyDateField = #1/1/2005#
.Update
End With
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top