FireViking
Programmer
hi all,
on startup i have a form that is not linked to a table. In the form_load sub I want to check 3 invoice tables for overdue invoices and show a message to alert the user.
I have tried to access these tables using
Dim db as database
Dim rs as recordset
Set db = Currentdb
Set rs = db.openrecordset("Invoice1"
'etc
But for some reason everytime I try to access a table this way it gives a 'type mismatch'error.
I feel i should be using the 'docmd' but am not sure of the syntax.
Is there an easyier way to access tables as I usually code in visual basic and I find that the same rules dont apply in access.
Any help would be appreciated.
thanks alot
Eric
on startup i have a form that is not linked to a table. In the form_load sub I want to check 3 invoice tables for overdue invoices and show a message to alert the user.
I have tried to access these tables using
Dim db as database
Dim rs as recordset
Set db = Currentdb
Set rs = db.openrecordset("Invoice1"
'etc
But for some reason everytime I try to access a table this way it gives a 'type mismatch'error.
I feel i should be using the 'docmd' but am not sure of the syntax.
Is there an easyier way to access tables as I usually code in visual basic and I find that the same rules dont apply in access.
Any help would be appreciated.
thanks alot
Eric