Microsoft Access Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft Access Help

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 December 8th, 2003, 07:23 PM
danboy29 danboy29 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 9 danboy29 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
AutoMatic Filename into Field

All,

How can I create a button that opens a dialog box that can select a file, automatically copy that file into a designated folder, then store the filename into a field in some table (for later reference in a report that can pull up that image).

Help!!

Thanks,

Dan

Reply With Quote
  #2  
Old December 9th, 2003, 11:04 AM
sbaxter sbaxter is offline
Moderator: Access, SQL
ASP Free God (5000 - 5499 posts)
 
Join Date: Oct 2003
Posts: 5,126 sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 1 h 2 m 51 sec
Reputation Power: 13
Check out this

http://www.dbforums.com/showthread....File+Dialog+box

You will need to weed through this and pull out the info you need. It shows you how to use a API call to open a dialog box to allow you to do what you are after

S-

Reply With Quote
  #3  
Old December 9th, 2003, 01:06 PM
danboy29 danboy29 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 9 danboy29 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks Sbaxter,

I was able to get that to work for me but how can I copy that selected file (whose filepath & filename now sits in a field in some table) into another folder. It could be that I am missing something in there but I can't seem to find it.

Thanks Again,

Dan

Reply With Quote
  #4  
Old December 9th, 2003, 01:44 PM
sbaxter sbaxter is offline
Moderator: Access, SQL
ASP Free God (5000 - 5499 posts)
 
Join Date: Oct 2003
Posts: 5,126 sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 1 h 2 m 51 sec
Reputation Power: 13
Is VB code for copy
FileCopy PathName, NewPathName
Is VB code for move/rename
Name PathName As NewPathName

To be honest, I have never tried this from within Access, so don't know if it will work. Use it in VB 6.0 all the time

You may have to find a API like we did for the dialogbox
S-

Reply With Quote
  #5  
Old December 9th, 2003, 02:46 PM
danboy29 danboy29 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 9 danboy29 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
sbaxter,

I went ahead and gave that a try but I recieved the following error:

Run-time 75
Path/File access error

Any ideas??

Reply With Quote
  #6  
Old December 10th, 2003, 12:06 PM
danboy29 danboy29 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 9 danboy29 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Scratch that last one I figured it out.

Reply With Quote
  #7  
Old December 10th, 2003, 12:42 PM
sbaxter sbaxter is offline
Moderator: Access, SQL
ASP Free God (5000 - 5499 posts)
 
Join Date: Oct 2003
Posts: 5,126 sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 1 h 2 m 51 sec
Reputation Power: 13
What was wrong?

S-

Reply With Quote
  #8  
Old December 10th, 2003, 04:03 PM
danboy29 danboy29 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 9 danboy29 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I put the path but not the file name in the destination portion of the Filecopy command.

Its the little things I look over!!

Thanks.. Dan

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > AutoMatic Filename into Field


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 5 hosted by Hostway
Stay green...Green IT