A
Ayo
When I open this form I get a "Data type mismatch in creteria expression" and
when I click on the button on the form I get "The expression you enetered
refers to an object that is closed or doesn't exist" error in the code. When
I click on Debug, it takes me to this line of code:
Me.OutofScope_Table_subform.Form.RecordSource = "SELECT * fROM [OutofScope
Table] WHERE [Project Number] ='" & _
Me.cmbProjectNumber & "'" & " AND [Task Number] ='" &
Me.cmbTaskNumber & "'" & " AND [National Site ID] ='" & _
Me.txtNationalSiteID & "'" & " AND [Project Name] ='" &
Me.cmbProjectName & "'" & ""
This is the same exact code that I used in another form the only diferrence
being Me.InScope_Table_subform.Form.RecordSource = "SELECT * fROM [InScope
Table]. In the other form I don't get any errors and everything works ok. SO
I don't understand what I error messages I am getting with this form is about.
Any ideas?
Thanks
when I click on the button on the form I get "The expression you enetered
refers to an object that is closed or doesn't exist" error in the code. When
I click on Debug, it takes me to this line of code:
Me.OutofScope_Table_subform.Form.RecordSource = "SELECT * fROM [OutofScope
Table] WHERE [Project Number] ='" & _
Me.cmbProjectNumber & "'" & " AND [Task Number] ='" &
Me.cmbTaskNumber & "'" & " AND [National Site ID] ='" & _
Me.txtNationalSiteID & "'" & " AND [Project Name] ='" &
Me.cmbProjectName & "'" & ""
This is the same exact code that I used in another form the only diferrence
being Me.InScope_Table_subform.Form.RecordSource = "SELECT * fROM [InScope
Table]. In the other form I don't get any errors and everything works ok. SO
I don't understand what I error messages I am getting with this form is about.
Any ideas?
Thanks