Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old August 19th, 2005, 04:24 AM
saabman saabman is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 68 saabman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 34 m 21 sec
Reputation Power: 5
Prompt user to enter file name

Hi!
I wanted to use an OutputTo function to save a file from access to html format. But I want my users to enter their desired file name, but not the path. so for exemple I want the path to be G:\myfolder\ and then the user chooses the file name with a prompt. Here is a bit of code but I need your help for the prompt bit

Code:
DoCmd.OutputTo acReport, "EnvoiCommande", acFormatHTML, 
this is wher I want the user to enter the file name, but not the path , 
False, ""


Thanx for any help...

Reply With Quote
  #2  
Old August 19th, 2005, 01:17 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 23 h 29 m 58 sec
Reputation Power: 181
Just get the desired filename into a variable using inputbox or a custom dialog, and use the variable as the DoCmd argument.

Code:
strVar = InputBox("Enter the filename")
strVar = strPath & "\" & strVar
DoCmd.OutputTo acReport, "EnvoiCommande", acFormatHTML, strVar, False, ""
__________________
======
Doug G
======
I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain

Reply With Quote
  #3  
Old August 19th, 2005, 04:56 PM
saabman saabman is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 68 saabman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 34 m 21 sec
Reputation Power: 5
thanx for that info, I will give that a go I apreciate the help

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Prompt user to enter file name


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT