I changed the code to look like this:
Private Sub Command128_Click()
On Error GoTo Err_Command128_Click
Dim stDocName As String
Dim stDocName2 As String
Dim stLinkCriteria As String
Dim stLinkCriteria2 As String
DoCmd.SetWarnings False
stDocName = "CreateWO"
stLinkCriteria = "[JobInfoID]=" & [JobInfoID]
DoCmd.OpenQuery stDocName
DoCmd.SetWarnings True
stDocName2 = ServiceName.Column(4)
stLinkCriteria2 = "[JobInfoID]=" & [JobInfoID]
DoCmd.OpenForm stDocName2, , , stLinkCriteria2
Exit_Command128_Click:
Exit Sub
Err_Command128_Click:
MsgBox Err.Description
Resume Exit_Command128_Click
End Sub
----------------------------
I get an error that says,
"Compile error:
Method or data member not found"
and access highlights .column
This is the error that I keep getting from this code.
Do you think it is because I am using access 2002, or because the combo box is in a tabbed form and I need to specify the tab that it is on? Also where do I put the where condition?
Thanks,
Russell