I don't have a copy of the book with me as I'm interstate at present, so I can't check what's written on the pages you mention.
The syntax set dba = CurrentDb is correct (although I don't recall actually using the letters "dba").
Check to make sure you have DAO referenced. Open any code module, and select References from the Tools menu. If Microsoft DAO 3.6 Object Library is not selected, find it and select it. If it's marked as missing, unselect it, find it and select it again.
If that's not the problem, please post the entire procedure as you have it in your program, and I'll take a look.
Graham R Seach
Microsoft Access MVP
|