A
Armin
How do I add items to the combo box?I'm getting the
Err.Msg "Method or data member not found".Here is the code
Thanks in advance
Armin
Dim strPathWeb As String
Dim db As DAO.Database, rcd As DAO.Recordset, strSQL As
String
strPathWeb = DLookup("[LinkToCal]", "tblcominfo") 'LINK TO
WEB DB
Set db = DBEngine(0).OpenDatabase(strPathWeb)
strSQL = "SELECT * FROM wcal_location"
Set rcd = db.OpenRecordset(strSQL)
rcd.MoveFirst
Do While Not rcd.EOF
rcd.MoveNext
Me.cmbWhere.additem rcd!Location
Loop
rcd.Close
set db = nothing
Err.Msg "Method or data member not found".Here is the code
Thanks in advance
Armin
Dim strPathWeb As String
Dim db As DAO.Database, rcd As DAO.Recordset, strSQL As
String
strPathWeb = DLookup("[LinkToCal]", "tblcominfo") 'LINK TO
WEB DB
Set db = DBEngine(0).OpenDatabase(strPathWeb)
strSQL = "SELECT * FROM wcal_location"
Set rcd = db.OpenRecordset(strSQL)
rcd.MoveFirst
Do While Not rcd.EOF
rcd.MoveNext
Me.cmbWhere.additem rcd!Location
Loop
rcd.Close
set db = nothing