473,574 Members | 3,101 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need file browse on Access form

I'm using an unbound form to upload an Excel spreadsheet into Access and I
was wondering if there is a control available that would allow me select the
desired file name and path. I can't seem to find any such control in my
toolbox.

Robert
Nov 13 '05 #1
6 8866
Br
In news:NP******** ***********@fe0 2.lga,
Robert <pr**********@y ahoo.com> said:
I'm using an unbound form to upload an Excel spreadsheet into Access
and I was wondering if there is a control available that would allow
me select the desired file name and path. I can't seem to find any
such control in my toolbox.

Robert


You'd need to all up the Windows file dialogs using Windows API calls.

Look at http://www.mvps.org/access/ under "APIs"
--
regards,

Bradley

A Christian Response
www.pastornet.net.au/response
Nov 13 '05 #2
Is this in .NET? Is there a way to do this in VB 6? Anybody?

Robert

"Br@dley" <n0****@4u.co m> wrote in message
news:bq******** ***********@new s-server.bigpond. net.au...
In news:NP******** ***********@fe0 2.lga,
Robert <pr**********@y ahoo.com> said:
I'm using an unbound form to upload an Excel spreadsheet into Access
and I was wondering if there is a control available that would allow
me select the desired file name and path. I can't seem to find any
such control in my toolbox.

Robert


You'd need to all up the Windows file dialogs using Windows API calls.

Look at http://www.mvps.org/access/ under "APIs"
--
regards,

Bradley

A Christian Response
www.pastornet.net.au/response

Nov 13 '05 #3
Br
In news:EE******** ***********@fe0 2.lga,
Robert <pr**********@y ahoo.com> said:
"Br@dley" <n0****@4u.co m> wrote in message
news:bq******** ***********@new s-server.bigpond. net.au...
In news:NP******** ***********@fe0 2.lga,
Robert <pr**********@y ahoo.com> said:
I'm using an unbound form to upload an Excel spreadsheet into Access
and I was wondering if there is a control available that would allow
me select the desired file name and path. I can't seem to find any
such control in my toolbox.

Robert
You'd need to all up the Windows file dialogs using Windows API
calls. Look at http://www.mvps.org/access/ under "APIs"
Is this in .NET? Is there a way to do this in VB 6? Anybody?

No, it is in Access/VBA. That was an Access site and this is an Access
forum.....

You asked how to do it in Access, why now ask for VB6?
--
regards,

Bradley

A Christian Response
www.pastornet.net.au/response
Nov 13 '05 #4
Because I'm assuming VBA is VB6 not VB.NET. But anyway I don't care what it
is as long as it works in Access. I am definitely using Access, sorry if I
gave the wrong impression.

I tried:

Dim strFilter As String
Dim strInputFileNam e As String

strFilter = ahtAddFilterIte m(strFilter, "Excel Files (*.XLS)", "*.XLS")
strInputFileNam e = ahtCommonFileOp enSave( _
Filter:=strFilt er, OpenFile:=True, _
DialogTitle:="P lease select an input file...", _
Flags:=ahtOFN_H IDEREADONLY)

and it told me that function ahtAddFilterIte m was not found. How do I find
this function?

"Br@dley" <n0****@4u.co m> wrote in message
news:NK******** ***********@new s-server.bigpond. net.au...
In news:EE******** ***********@fe0 2.lga,
Robert <pr**********@y ahoo.com> said:
"Br@dley" <n0****@4u.co m> wrote in message
news:bq******** ***********@new s-server.bigpond. net.au...
In news:NP******** ***********@fe0 2.lga,
Robert <pr**********@y ahoo.com> said:
I'm using an unbound form to upload an Excel spreadsheet into Access
and I was wondering if there is a control available that would allow
me select the desired file name and path. I can't seem to find any
such control in my toolbox.

Robert You'd need to all up the Windows file dialogs using Windows API
calls. Look at http://www.mvps.org/access/ under "APIs"

Is this in .NET? Is there a way to do this in VB 6? Anybody?

No, it is in Access/VBA. That was an Access site and this is an Access
forum.....

You asked how to do it in Access, why now ask for VB6?
--
regards,

Bradley

A Christian Response
www.pastornet.net.au/response

Nov 13 '05 #5
Br
In news:6h******** **********@fe06 .lga,
Robert <pr**********@y ahoo.com> said:
Because I'm assuming VBA is VB6 not VB.NET. But anyway I don't care
what it is as long as it works in Access. I am definitely using
Access, sorry if I gave the wrong impression.

I tried:

Dim strFilter As String
Dim strInputFileNam e As String

strFilter = ahtAddFilterIte m(strFilter, "Excel Files (*.XLS)",
"*.XLS") strInputFileNam e = ahtCommonFileOp enSave( _
Filter:=strFilt er, OpenFile:=True, _
DialogTitle:="P lease select an input file...", _
Flags:=ahtOFN_H IDEREADONLY)

and it told me that function ahtAddFilterIte m was not found. How do
I find this function?
Read the notes carefully...

".. see the included function TestIt() .."

The function is listed on this page:
http://www.mvps.org/access/api/api0001.htm

Br@dley

"Br@dley" <n0****@4u.co m> wrote in message
news:NK******** ***********@new s-server.bigpond. net.au...
In news:EE******** ***********@fe0 2.lga,
Robert <pr**********@y ahoo.com> said:
"Br@dley" <n0****@4u.co m> wrote in message
news:bq******** ***********@new s-server.bigpond. net.au...
In news:NP******** ***********@fe0 2.lga,
Robert <pr**********@y ahoo.com> said:
> I'm using an unbound form to upload an Excel spreadsheet into
> Access and I was wondering if there is a control available that
> would allow me select the desired file name and path. I can't
> seem to find any such control in my toolbox.
>
> Robert

You'd need to all up the Windows file dialogs using Windows API
calls. Look at http://www.mvps.org/access/ under "APIs"

Is this in .NET? Is there a way to do this in VB 6? Anybody?

No, it is in Access/VBA. That was an Access site and this is an
Access forum.....

You asked how to do it in Access, why now ask for VB6?
--
regards,

Bradley

A Christian Response
www.pastornet.net.au/response


--
regards,

Bradley

A Christian Response
www.pastornet.net.au/response
Nov 13 '05 #6
All right. I'll check it out.
"Br@dley" <n0****@4u.co m> wrote in message
news:%r******** **********@news-server.bigpond. net.au...
In news:6h******** **********@fe06 .lga,
Robert <pr**********@y ahoo.com> said:
Because I'm assuming VBA is VB6 not VB.NET. But anyway I don't care
what it is as long as it works in Access. I am definitely using
Access, sorry if I gave the wrong impression.

I tried:

Dim strFilter As String
Dim strInputFileNam e As String

strFilter = ahtAddFilterIte m(strFilter, "Excel Files (*.XLS)",
"*.XLS") strInputFileNam e = ahtCommonFileOp enSave( _
Filter:=strFilt er, OpenFile:=True, _
DialogTitle:="P lease select an input file...", _
Flags:=ahtOFN_H IDEREADONLY)

and it told me that function ahtAddFilterIte m was not found. How do
I find this function?


Read the notes carefully...

".. see the included function TestIt() .."

The function is listed on this page:
http://www.mvps.org/access/api/api0001.htm

Br@dley

"Br@dley" <n0****@4u.co m> wrote in message
news:NK******** ***********@new s-server.bigpond. net.au...
In news:EE******** ***********@fe0 2.lga,
Robert <pr**********@y ahoo.com> said:
"Br@dley" <n0****@4u.co m> wrote in message
news:bq******** ***********@new s-server.bigpond. net.au...
> In news:NP******** ***********@fe0 2.lga,
> Robert <pr**********@y ahoo.com> said:
>> I'm using an unbound form to upload an Excel spreadsheet into
>> Access and I was wondering if there is a control available that
>> would allow me select the desired file name and path. I can't
>> seem to find any such control in my toolbox.
>>
>> Robert

> You'd need to all up the Windows file dialogs using Windows API
> calls. Look at http://www.mvps.org/access/ under "APIs"

Is this in .NET? Is there a way to do this in VB 6? Anybody?
No, it is in Access/VBA. That was an Access site and this is an
Access forum.....

You asked how to do it in Access, why now ask for VB6?
--
regards,

Bradley

A Christian Response
www.pastornet.net.au/response


--
regards,

Bradley

A Christian Response
www.pastornet.net.au/response

Nov 13 '05 #7

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

Similar topics

20
2462
by: CHIN | last post by:
Hi all.. here s my problem ( maybe some of you saw me on other groups, but i cant find the solution !! ) I have to upload a file to an external site, so, i made a .vbs file , that logins to the site, and then i have to select the file to upload.. i used sendkeys.. and i worked perfect.. BUT ... the computer must be locked for security (...
1
6636
by: mattrapoport | last post by:
I have a form with an input type='file' element. I click on the Browse button of my file upload element, select a file, and hit open. The file name appears in the textbox portion of the file upload element (as expected). When I submit this form everything works perfectly. On the same form I have a hyperlink that simulates clicking on the...
4
2042
by: Dave N | last post by:
I want to programatically open the Access "File" "Open" browse box to search for a file. When it is selected I wnat to have it put the path in a text box so it can be added to a list box.
2
2121
by: Susan Bricker | last post by:
Greetings. Before I begin, I have been stuck on this problem for about a 5 days, now. I have tried and just seem to be not getting anywhere. I know that the explanation is lengthy, but I am a relative newcomer to Access and need to be methodical until it become more familiar. Thanks in advance for your help. I have a form with a subform...
1
4464
by: Rob Mitchell | last post by:
(Sorry if this appears twice) Hi, I know this has probably been beaten to death but I was working with Class by Stickman -- http://www.the-stickman.com which uses DOM to create multiple file input elements in a form. I'm trying to just hide all the form input elements
2
10350
by: Lyle Fairfield | last post by:
I am using Microsoft’s Web Browser Control embedded on an Access Form to browse a specific site. I have a good reason for doing so; the pages on this site run code which aborts their display unless their window is the top window; they also treat all child windows as not-logged in windows. So I have not accomplished what I want with HTA’s or...
9
24741
by: Prakash Singh Bhakuni | last post by:
am replacing the default "Browse..." button for input type=file. This works fine except that the form will only submit after the SUBMIT button is clicked twice. Any ideas on why this is happening or a workaround? I'm testing on IE Thanks! <html> <head></head> <body> <form name="test_form" method="post" action="test.jsp">
3
5204
by: ApexData | last post by:
I am using code from the following links to establish a Browse File and Browse Folder dialog. http://www.mvps.org/access/api/api0001.htm http://www.mvps.org/access/api/api0002.htm This code works great. However, once the file dialog becomes visible, if the user clicks on my popup form that exists under the file dialog, the file dialog...
79
40859
truthlover
by: truthlover | last post by:
I need some help. I need a button on an Access form that allows the user to browse for a file on our network, and insert it in a field (rather than having to type a path). I dont need any filters because the files can be any number of formats. I've come across a couple of so-called "simple" solutions, but for the life of me, I either cant...
0
7726
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8052
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8234
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7815
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8098
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6452
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5620
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5300
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
1339
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.