Link to home
Start Free TrialLog in
Avatar of Murray Brown
Murray BrownFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Access VBA View newly imported table

Hi


I am importing an Excel file into Access using the following code. How do I view the table data without a form having been assigned to it. The format and columns of the data will change so I want to be able to  view the data after load. Is there a way to have a multipurpose form that can load any table


    DoCmd.TransferSpreadsheet acImport, , "New Table", F, True

Avatar of Jim Dettman (EE MVE)
Jim Dettman (EE MVE)
Flag of United States of America image

<<The format and columns of the data will change so I want to be able to  view the data after load.  >>

 Not sure I understand the question in terms of intent, but as long as the table name doesn't change, you can have a query defined as:

 SELECT * FROM <table name>

 and open that in code after the import.   You'll get the query output on the screen.

 Even more simply, just open the table from the database container, but I'm assuming you meant this from an end user perspective.

 That's what I meant about not understanding;  who and how will this functionality need to be used.

Jim.
Avatar of Murray Brown

ASKER

Hi Jim
I really just want the user to see the table in a read only format. I also want it to be a pop out.
Thanks

ASKER CERTIFIED SOLUTION
Avatar of Jim Dettman (EE MVE)
Jim Dettman (EE MVE)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial