I am pretty new to VBA, please help.
I need to pass this database variable to a function but I get "Type Mismatch" Error.
Below is code:
dim MasterDb as DAO.database
set MasterDb=Opendatabase("C:\test.mdb")
fTest(MasterDb)
function fTest (MasterDb as DAO.database)
end function
I need to pass this database variable to a function but I get "Type Mismatch" Error.
Below is code:
dim MasterDb as DAO.database
set MasterDb=Opendatabase("C:\test.mdb")
fTest(MasterDb)
function fTest (MasterDb as DAO.database)
end function