Can't Set object

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
 

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