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 / General 2 / February 2008

Tip: Looking for answers? Try searching our database.

prompt for function arguments?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
lecoughlin@gmail.com - 25 Feb 2008 18:35 GMT
I have a macro that calls a function with 2 arguments:
 Import (file path, state)

This function is importing excel files into an access database.  I
have to import a file for all 50 states.  Is there a way to set
something up that when the code is run, it will prompt for the file
path and state?

Thanks in advance for any help.
Jackie L - 25 Feb 2008 19:03 GMT
You can base your path and state off unbound fields on a form so that those
fields would need to be populated before running the code.  

If the paths stay the same for each state, it sounds though like you might
want to make a table to store the path and state and then have the code loop
through those records which would eliminate the data entry each time.

Hope this helps,
Jackie

> I have a macro that calls a function with 2 arguments:
>   Import (file path, state)
[quoted text clipped - 5 lines]
>
> Thanks in advance for any help.
 
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.