Connecting Tech Pros Worldwide Help | Site Map

Need file browse on Access form

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 13th, 2005, 09:18 AM
Robert
Guest
 
Posts: n/a
Default 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



  #2  
Old November 13th, 2005, 09:18 AM
Br@dley
Guest
 
Posts: n/a
Default Re: Need file browse on Access form

In news:NPBbe.22783$Gq6.15243@fe02.lga,
Robert <projecttoday@yahoo.com> said:[color=blue]
> 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[/color]

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


  #3  
Old November 13th, 2005, 09:18 AM
Robert
Guest
 
Posts: n/a
Default Re: Need file browse on Access form

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

Robert

"Br@dley" <n0mail@4u.com> wrote in message
news:bqCbe.29583$5F3.10884@news-server.bigpond.net.au...[color=blue]
> In news:NPBbe.22783$Gq6.15243@fe02.lga,
> Robert <projecttoday@yahoo.com> said:[color=green]
>> 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[/color]
>
> 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
>[/color]


  #4  
Old November 13th, 2005, 09:18 AM
Br@dley
Guest
 
Posts: n/a
Default Re: Need file browse on Access form

In news:EEEbe.24355$Gq6.21280@fe02.lga,
Robert <projecttoday@yahoo.com> said:[color=blue]
> "Br@dley" <n0mail@4u.com> wrote in message
> news:bqCbe.29583$5F3.10884@news-server.bigpond.net.au...[color=green]
>> In news:NPBbe.22783$Gq6.15243@fe02.lga,
>> Robert <projecttoday@yahoo.com> said:[color=darkred]
>>> 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[/color][/color][/color]
[color=blue][color=green]
>> You'd need to all up the Windows file dialogs using Windows API
>> calls. Look at http://www.mvps.org/access/ under "APIs"[/color][/color]
[color=blue]
> Is this in .NET? Is there a way to do this in VB 6? Anybody?[/color]


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


  #5  
Old November 13th, 2005, 09:18 AM
Robert
Guest
 
Posts: n/a
Default Re: Need file browse on Access form

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" <n0mail@4u.com> wrote in message
news:NKEbe.30196$5F3.21458@news-server.bigpond.net.au...[color=blue]
> In news:EEEbe.24355$Gq6.21280@fe02.lga,
> Robert <projecttoday@yahoo.com> said:[color=green]
>> "Br@dley" <n0mail@4u.com> wrote in message
>> news:bqCbe.29583$5F3.10884@news-server.bigpond.net.au...[color=darkred]
>>> In news:NPBbe.22783$Gq6.15243@fe02.lga,
>>> Robert <projecttoday@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[/color][/color]
>[color=green][color=darkred]
>>> You'd need to all up the Windows file dialogs using Windows API
>>> calls. Look at http://www.mvps.org/access/ under "APIs"[/color][/color]
>[color=green]
>> Is this in .NET? Is there a way to do this in VB 6? Anybody?[/color]
>
>
> 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
>[/color]


  #6  
Old November 13th, 2005, 09:18 AM
Br@dley
Guest
 
Posts: n/a
Default Re: Need file browse on Access form

In news:6hFbe.22317$Ow2.3062@fe06.lga,
Robert <projecttoday@yahoo.com> said:[color=blue]
> 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?[/color]

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





[color=blue]
> "Br@dley" <n0mail@4u.com> wrote in message
> news:NKEbe.30196$5F3.21458@news-server.bigpond.net.au...[color=green]
>> In news:EEEbe.24355$Gq6.21280@fe02.lga,
>> Robert <projecttoday@yahoo.com> said:[color=darkred]
>>> "Br@dley" <n0mail@4u.com> wrote in message
>>> news:bqCbe.29583$5F3.10884@news-server.bigpond.net.au...
>>>> In news:NPBbe.22783$Gq6.15243@fe02.lga,
>>>> Robert <projecttoday@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[/color]
>>[color=darkred]
>>>> You'd need to all up the Windows file dialogs using Windows API
>>>> calls. Look at http://www.mvps.org/access/ under "APIs"[/color]
>>[color=darkred]
>>> Is this in .NET? Is there a way to do this in VB 6? Anybody?[/color]
>>
>>
>> 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[/color][/color]

--
regards,

Bradley

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


  #7  
Old November 13th, 2005, 09:19 AM
Robert
Guest
 
Posts: n/a
Default Re: Need file browse on Access form

All right. I'll check it out.
"Br@dley" <n0mail@4u.com> wrote in message
news:%rGbe.30554$5F3.8537@news-server.bigpond.net.au...[color=blue]
> In news:6hFbe.22317$Ow2.3062@fe06.lga,
> Robert <projecttoday@yahoo.com> said:[color=green]
>> 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?[/color]
>
> 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
>
>
>
>
>
>[color=green]
>> "Br@dley" <n0mail@4u.com> wrote in message
>> news:NKEbe.30196$5F3.21458@news-server.bigpond.net.au...[color=darkred]
>>> In news:EEEbe.24355$Gq6.21280@fe02.lga,
>>> Robert <projecttoday@yahoo.com> said:
>>>> "Br@dley" <n0mail@4u.com> wrote in message
>>>> news:bqCbe.29583$5F3.10884@news-server.bigpond.net.au...
>>>>> In news:NPBbe.22783$Gq6.15243@fe02.lga,
>>>>> Robert <projecttoday@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[/color][/color]
>
> --
> regards,
>
> Bradley
>
> A Christian Response
> www.pastornet.net.au/response
>[/color]


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.