Problem Updating a subform control

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

Guest

I have a check box on a main form. I want the recordsource of a combobox in
the subform to update when someone clicks on it. Here's my code:

Private Sub Check59_Click()
Me.[Form].[Time Cards Subform].[ProjectID].Requery
End Sub

The error I get is:
Object doesn't suport this property or meathod.

Thanks in advance for any suggestions.
 
Provide that [Time Cards Subform] is the name of the SubformCONTROL (which
can be different from the name of the Form being used as the "Subform", you
can use:

Me.[Time Cards Subform].Form![ProjectID].Requery

BTW, you should not use spaces or special characters in Table names, Field
names, Form names, Control names, etc ... They simply complicate things when
you need to write VBA code.
 

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