472,342 Members | 1,359 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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 8795
Br
In news:NP*******************@fe02.lga,
Robert <pr**********@yahoo.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.com> wrote in message
news:bq*******************@news-server.bigpond.net.au...
In news:NP*******************@fe02.lga,
Robert <pr**********@yahoo.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*******************@fe02.lga,
Robert <pr**********@yahoo.com> said:
"Br@dley" <n0****@4u.com> wrote in message
news:bq*******************@news-server.bigpond.net.au...
In news:NP*******************@fe02.lga,
Robert <pr**********@yahoo.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 strInputFileName As String

strFilter = ahtAddFilterItem(strFilter, "Excel Files (*.XLS)", "*.XLS")
strInputFileName = ahtCommonFileOpenSave( _
Filter:=strFilter, OpenFile:=True, _
DialogTitle:="Please select an input file...", _
Flags:=ahtOFN_HIDEREADONLY)

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

"Br@dley" <n0****@4u.com> wrote in message
news:NK*******************@news-server.bigpond.net.au...
In news:EE*******************@fe02.lga,
Robert <pr**********@yahoo.com> said:
"Br@dley" <n0****@4u.com> wrote in message
news:bq*******************@news-server.bigpond.net.au...
In news:NP*******************@fe02.lga,
Robert <pr**********@yahoo.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**********@yahoo.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 strInputFileName As String

strFilter = ahtAddFilterItem(strFilter, "Excel Files (*.XLS)",
"*.XLS") strInputFileName = ahtCommonFileOpenSave( _
Filter:=strFilter, OpenFile:=True, _
DialogTitle:="Please select an input file...", _
Flags:=ahtOFN_HIDEREADONLY)

and it told me that function ahtAddFilterItem 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.com> wrote in message
news:NK*******************@news-server.bigpond.net.au...
In news:EE*******************@fe02.lga,
Robert <pr**********@yahoo.com> said:
"Br@dley" <n0****@4u.com> wrote in message
news:bq*******************@news-server.bigpond.net.au...
In news:NP*******************@fe02.lga,
Robert <pr**********@yahoo.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.com> wrote in message
news:%r******************@news-server.bigpond.net.au...
In news:6h******************@fe06.lga,
Robert <pr**********@yahoo.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 strInputFileName As String

strFilter = ahtAddFilterItem(strFilter, "Excel Files (*.XLS)",
"*.XLS") strInputFileName = ahtCommonFileOpenSave( _
Filter:=strFilter, OpenFile:=True, _
DialogTitle:="Please select an input file...", _
Flags:=ahtOFN_HIDEREADONLY)

and it told me that function ahtAddFilterItem 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.com> wrote in message
news:NK*******************@news-server.bigpond.net.au...
In news:EE*******************@fe02.lga,
Robert <pr**********@yahoo.com> said:
"Br@dley" <n0****@4u.com> wrote in message
news:bq*******************@news-server.bigpond.net.au...
> In news:NP*******************@fe02.lga,
> Robert <pr**********@yahoo.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
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...
1
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...
4
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...
2
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...
1
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 --...
2
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...
9
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...
3
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...
79
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...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...

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.