Microsoft Access Forums

Go Back   Microsoft Access Forums > Access Forums > Programming

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 02-27-2009, 08:02 AM
Novice
 
Join Date: Feb 2009
Posts: 2
sawill is on a distinguished road
Default Create a command button to Browes for file

I want to create a command button that will allow me to browes my c:drive folders.

Currently, I have code that will import a spreadsheet. At present, the spreadsheet file name is HARD CODED into the macros "Transferspreedshhet acimport, 3, filename...." you get the picture. Subsequesntly if the spreadsheet file name I want to import changes I have to update the macro with the new file name.

My goal is to be able to create a button, much like a browes button, that will allow me to search for the file I want to import, select it, and then insert that file name into my macro code.

Is this an attainable goal

any advis would be appreciated
Reply With Quote
  #2  
Old 02-28-2009, 06:39 PM
RuralGuy's Avatar
RuralGuy RuralGuy is offline Windows 7 Access 2007 (version 12.0)
Super Moderator
 
Join Date: Mar 2007
Location: 8300' in the Colorado Rocky Mountains
Posts: 3,848
RuralGuy will become famous soon enoughRuralGuy will become famous soon enough
Default

I use the API call: API: Call the standard Windows File Open/Save dialog box
__________________
(RG for short) aka Allan Bunch MS Access MVP - WinXP Pro, Win7 - acXP, ac07
If your issue is resolved...follow this link for directions on how to use the Solved thread tool!
Teaching is not filling a bucket but lighting a fire. Borrowed quote..."Docendo discimus"
Reply With Quote
  #3  
Old 03-03-2009, 06:47 AM
Novice
 
Join Date: Feb 2009
Posts: 2
sawill is on a distinguished road
Default Thanks

Thanks for the reply
I got it to work
Reply With Quote
  #4  
Old 03-15-2009, 03:02 PM
RuralGuy's Avatar
RuralGuy RuralGuy is offline Windows 7 Access 2007 (version 12.0)
Super Moderator
 
Join Date: Mar 2007
Location: 8300' in the Colorado Rocky Mountains
Posts: 3,848
RuralGuy will become famous soon enoughRuralGuy will become famous soon enough
Default

Glad I could help.
__________________
(RG for short) aka Allan Bunch MS Access MVP - WinXP Pro, Win7 - acXP, ac07
If your issue is resolved...follow this link for directions on how to use the Solved thread tool!
Teaching is not filling a bucket but lighting a fire. Borrowed quote..."Docendo discimus"
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Duplicate command button brettg Database Design 1 08-04-2008 02:16 AM
Command button code lfolger Forms 3 03-25-2008 02:26 PM
Command button for time & date joet5402 Forms 2 12-19-2007 11:59 PM
command button to filter a subform issue - countdrako Forms 1 12-09-2005 08:58 PM
Open a linked subform with a command button flablueeyedblond Forms 0 11-18-2005 10:18 AM


All times are GMT -8. The time now is 08:28 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.