D.W. Schingenga
Registered User.
- Local time
- Today, 13:56
- Joined
- Jun 2, 2005
- Messages
- 29
I have problems with the line below in my Dbase:
Set rst = CurrentDb.OpenRecordset("SELECT * FROM tbl_BA_Deb WHERE Debiteurennummer = " & Me.cboDebiteurennummer & " ORDER BY Debiteurennummer", dbOpenDynaset)
Every time I open de combobox and select a customer, it comes with the error 91 message, Objectvariable of Blockvariable With is not set.
Strange thing is that in another Dbase this line works fine, but in the present Dbase it does not work. The only difference is that the other Dbase has a .mdb back and the present DBase has a SQL back.
Thanks,
Dirk
Set rst = CurrentDb.OpenRecordset("SELECT * FROM tbl_BA_Deb WHERE Debiteurennummer = " & Me.cboDebiteurennummer & " ORDER BY Debiteurennummer", dbOpenDynaset)
Every time I open de combobox and select a customer, it comes with the error 91 message, Objectvariable of Blockvariable With is not set.
Strange thing is that in another Dbase this line works fine, but in the present Dbase it does not work. The only difference is that the other Dbase has a .mdb back and the present DBase has a SQL back.
Thanks,
Dirk