473,385 Members | 1,958 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Need VBA for file requester please

Hi Everyone.

What I wish to do in VBA is call up a file request dialog box so the user
can select any file on the PC, and have the selected file's path put into
the current record's applicable field in the table.

I have googled and cannot find a solution.

This would really help greatly and any help much appreciated.

Thank you.


Nov 13 '05 #1
5 2596
See:
Call Windows File Open/Save Dialog box
at:
http://www.mvps.org/access/api/api0001.htm

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Bugs" <bu*****@optusnet.com.au> wrote in message
news:42***********************@news.optusnet.com.a u...
Hi Everyone.

What I wish to do in VBA is call up a file request dialog box so the user
can select any file on the PC, and have the selected file's path put into
the current record's applicable field in the table.

Nov 13 '05 #2
You couldn't have looked very hard. there's one right here.

http://www.mvps.org/access/api/api0001.htm

Nov 13 '05 #3
Thanks very much for your assistance,

I shall study the code and try adapt it to my use as my VBA is somewhat
limited.

Also would anyone know why having a tab contol on a form with images stuffs
up the print and print previews in Access 2003 ? Driving me nuts.

Thanks again.

Cheers.



"Bugs" <bu*****@optusnet.com.au> wrote in message
news:42***********************@news.optusnet.com.a u...
Hi Everyone.

What I wish to do in VBA is call up a file request dialog box so the user
can select any file on the PC, and have the selected file's path put into
the current record's applicable field in the table.

I have googled and cannot find a solution.

This would really help greatly and any help much appreciated.

Thank you.


Nov 13 '05 #4
Bugs, you generally need to create a report laid out how you want it to
print.

Printing a form doesn't work very well, especially so where you have
multiple tabs.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Bugs" <bu*****@optusnet.com.au> wrote in message
news:42***********************@news.optusnet.com.a u...

Also would anyone know why having a tab contol on a form with images
stuffs
up the print and print previews in Access 2003 ? Driving me nuts.

Nov 13 '05 #5
Thank you for everything Allen and Piet.

Ive worked out how to use the code suggested and all is now working very
well.

I am replacing the OLE images with an image path in the table and removing
the tab control as it will be no longer necessary.

And thanks for the tip re the report.

Cheers.

Joe.


"Allen Browne" <Al*********@SeeSig.Invalid> wrote in message
news:42***********************@per-qv1-newsreader-01.iinet.net.au...
Bugs, you generally need to create a report laid out how you want it to
print.

Printing a form doesn't work very well, especially so where you have
multiple tabs.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Bugs" <bu*****@optusnet.com.au> wrote in message
news:42***********************@news.optusnet.com.a u...

Also would anyone know why having a tab contol on a form with images
stuffs
up the print and print previews in Access 2003 ? Driving me nuts.


Nov 13 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: martijn | last post by:
Hi There, my vb app can open files. Well, actually my vb app launches word or excell to open them. These files are shared in a network. If somebody else has allready opened that file, you...
7
by: Roger Withnell | last post by:
I would like to check that an image file, selected by a user using fileUpload, is within certain parameters (width, height, filesize) and to display the image file so that the user can see the...
66
by: genestarwing | last post by:
QUESTION: Write a program that opens and read a text file and records how many times each word occurs in the file. Use a binary search tree modified to store both a word and the number of times it...
1
by: capb | last post by:
Hello, This is my first post, and any help would be greatly appreciated. I create online memorials which contain guestbooks which have been the subject of computer generated spam. I have been able...
8
by: skumar434 | last post by:
i need to store the data from a data base in to structure .............the problem is like this ....suppose there is a data base which stores the sequence no and item type etc ...but i need only...
4
by: georges the man | last post by:
hey guys, i ve been posting for the last week trying to understand some stuff about c and reading but unfortunaly i couldnt do this. i have to write the following code. this will be the last...
46
by: Bruce W. Darby | last post by:
This will be my very first VB.Net application and it's pretty simple. But I've got a snag in my syntax somewhere. Was hoping that someone could point me in the right direction. The history: My...
0
by: jeethsu | last post by:
Hi, I have Java application running on Websphere Application Server 6.0 This application connects to Mainframe DB2 using CLI type 2 driver. The application uses websphere connection pool...
2
by: barthelemy.von.haller | last post by:
Hello ! I am having a problem which I thought was an easy one but which starts to drive me crazy. Imagine that I have a text displayed in a div. I would like a button to download a text file...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.