javablood said:
Jeff,
Thank you. So if I open the data in form to preview will you then tell me
if there is a way to close a table and then shift focus back to the form?
<snip>
Jeff's giving you some great advice but you don't seem to be listening. A
professionally created Access application will *never* show a Table to the
user. Tables are for designing and storing data, period.
Try this:
Select the table in question in the database window (or better still, create
a Query which draws data from the table). From the Insert menu, select
'AutoForm'. When Access is done creating the form for you, open the form to
make sure you can see the correct data (well one record of it). Now go to
the 'View' menu and select 'Datasheet". Notice that this looks like a table
but is really a form. Now that you've got a form you can address your
problem by putting this code:
DoCmd.Restore
in the form's Close event.
This is something you can't do with tables, anyway. Tables and Queries
cannot contain code, but forms and reports can.