A
augustus
Hi,
THis is my code:
Private Sub Document_Open()
Dim strSQL As String, strColumnLocation As String
Dim objCbx As ComboBox
strSQL = "SELECT JobNo FROM [JobNo_JobName$]"
Set objCbx = ThisDocument.cbxJob 'cbxJob, a combobox on
ThisDocument
Call Module1.LoadDatabase(objCbx, "JobNo", strSQL)
End Sub
but I can't set objCbx, I get nothing. Could someone tell me how to Set the
object?
Regards
THis is my code:
Private Sub Document_Open()
Dim strSQL As String, strColumnLocation As String
Dim objCbx As ComboBox
strSQL = "SELECT JobNo FROM [JobNo_JobName$]"
Set objCbx = ThisDocument.cbxJob 'cbxJob, a combobox on
ThisDocument
Call Module1.LoadDatabase(objCbx, "JobNo", strSQL)
End Sub
but I can't set objCbx, I get nothing. Could someone tell me how to Set the
object?
Regards