Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Macros / November 2006

Tip: Looking for answers? Try searching our database.

Can User Input Be Used in a TransferDatabase MACRO ???

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kev100 - 27 Nov 2006 21:04 GMT
I posted a question similar to this in the Import/Linking forum....and
received a possible VBA coding solution.

This may be the more appropriate forum and am posting here, just in case.
Since I'm not real familiar with VBA coding...I'm hoping there may be some
little-known feature in Access that makes this possible...

I've set up a Macro to Import a non-Access table into an Access table.

In the TransferDatabase macro...there is a field for the source table name.
I currently have the exact name of the source table..and it works fine.  

However, I'm needing to prompt the User for the NAME of the Source table that
is being imported.

In other words....is it possible to use some type of user input for that
field of the Macro...rather than it being fixed?

There are several tables....any one of which  the user may need to import
depending on the task at hand.

Is it possible to use some sort of paramater input variable in the source
table field?

Something like...
Source:  [Enter Table Name Suffix:]   (?)

I have tried the above syntax....but it does not work...I only used it to try
to illustrate what is needed.

Thanks very much.
Steve Schapel - 28 Nov 2006 13:25 GMT
Kev,

Try it like this...
 =InputBox("Name of table?")

Signature

Steve Schapel, Microsoft Access MVP

> I posted a question similar to this in the Import/Linking forum....and
> received a possible VBA coding solution.
[quoted text clipped - 27 lines]
>
> Thanks very much.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.