Check to see if a query or table is open

M

Mark

Is it possible in VB to check to see if a query or table
is currently open in a window, and if so, how could I
close if from within another form?

Thanks,

Mark
 
M

MacDermott

Look at SysCmd; I think it's got an option for object state.
DoCmd.Close [ObjectType],[ObjectName] should close it.

HTH
- Turtle
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top