Word VBA is syntactically identical to Excel's ... so the problem lies
elsewhere in your code.
Thanks Tony & Jezebel.
That's what I thought too. (Excel & Word syntact are the same)
THe following is my code:
Private Sub Document_Open()
Dim strSQL As String, strColumnLocation As String
Dim objCbx As ComboBox
strSQL = "SELECT * FROM [JobNo_JobName$]"
Set objCbx = Me.cbxJob
Call Module1.LoadDatabase(Me.cbxJob, "JobNo", strSQL)
End Sub
But when I run the code under debug mode (ie, F8 button), or query objCBx
inside Immediate mode, I get nothing. WHy?
I have also checked the Tools/Reference, anad ensure that it is identical to
Excel (of course replaced Excel Object with Word Object), but this didn't
help.
> Word VBA is syntactically identical to Excel's ... so the problem lies
> elsewhere in your code.
[quoted text clipped - 17 lines]
> >
> > Thanks.