Creating record in sub form

L

Les

I use the code below to create a new record in a sub
[Project_Grades_Required] form when I create a new record in the main form.
this works fine. My problem is if I want to add a further record to the sub
form I get the message "A problem occured while the {Database name quoted}
was communicating with the OLE server or ActiveX Control. When I click OK
the record is created.

Can someone tell me whats happening here and how to get arround it please.

Les

strsql = "INSERT INTO tblProject_Grades_Required (Link)" _
& "VALUES(" & Me!Link_Number & ")"

CurrentDb.Execute strsql, dbFailOnError

Form![Project Grades Required].Requery
 

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

Top