473,790 Members | 2,380 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access 2000 File/Open box

I have created a small database that imports a text file with a macro
through TranserText into a table. I would like to be able to add the
ability for it to give the File/Open box so someone could pick the file
they will be importing. Is there a way I can do that and call that from
within my macro?
Thanks

Nov 13 '05 #1
5 1599
Not sure if you can call it from within a macro, since I never use
macros. but there's code to do it right here...

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

You could create a button that called this and then passed the result
to the TransferText command...

this is assuming that you grabbed the code from the above link and
dropped it into it's own module and saved it... then you can just do
something like this....

Private Sub Command0_Click( )
'create a variable to hold the filename to import.
Dim strFileToImport As String

If Len(strFile) <> 0 Then
strFileToImport = basOpenSaveFile API.TestIt
DoCmd.TransferT ext acImportDelim, , "MyTable", strFileToImport ,
True
Else
MsgBox "please specify a file to import!"
End If
End Sub

You'll need to modify the TransferText stuff to suit your situation -
the file type (is it delimited?), what table your data is going into,
etc...

Nov 13 '05 #2
i wont to work in toronto.

Nov 13 '05 #3
"anyla_80" <al**********@k .ro> wrote
i wont to work in toronto.


Is that "I won't work in Toronto." or "I want to work in Toronto."?

And do you realize how really, really cold it gets there?
Darryl Kerkeslager
No kill I

Nov 13 '05 #4
Darryl Kerkeslager wrote:
"anyla_80" <al**********@k .ro> wrote
i wont to work in toronto.


Is that "I won't work in Toronto." or "I want to work in Toronto."?

And do you realize how really, really cold it gets there?
Darryl Kerkeslager
No kill I


Your 1D metric needs some augmentation :-). Toronto is a great city.
It is even more multi-cultural than, say, Boston or L.A., including the
largest Asian population in North America. It has a vibrant economy,
moderately low crime, friendly people and great food. It also has lots
of good coffee shops to help fend off the cold. The only negatives are
the cold, the exchange rate (if you work there) and a game of pool
costing a loonie (Canadian dollar coin). I don't include the high
taxes as a negative because of what they get in return, such as free
health insurance. Disclaimer: I don't live in Toronto.
James A. Fortune

Nov 13 '05 #5
Darryl Kerkeslager wrote:
"anyla_80" <al**********@k .ro> wrote
i wont to work in toronto.

Is that "I won't work in Toronto." or "I want to work in Toronto."?

And do you realize how really, really cold it gets there?


put some thick socks on you big jessie :-)

--
This sig left intentionally blank
Nov 13 '05 #6

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

Similar topics

17
2910
by: chicha | last post by:
Hey people, I have to convert MS Access 2000 database into mysql database, the whole thing being part of this project I'm doing for one of my faculty classes. My professor somehow presumed I knew db's and gave me long list of things to do with that particular database, first thing being that particular conversion. Truth is that I don't know a first thing about db's, let alone using mysql... I downloaded mysql form www.mysql.com and...
1
2766
by: Steve Claflin | last post by:
I have a database with a moderate number of records in several tables (the biggest table at the moment is about 800 records). In development it got moved between 2K and XP repeatedly. Several days ago, it wouldn't open, and proposed creating a backup before fixing. OK, but the "fixed version" didn't open -- same messages as the original -- but the backup did. But, in the 800 record table only 200 records appeared. We went back several...
6
4756
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much appreciated. Thanks in advance
11
2269
by: stu | last post by:
I have several databases that are opened using various versions of Access and VB. Up till recently everything worked fine, then I started getting a variety of lock file error messages, both on my PC and other computers (both Win2k and WinXP). After a lot of testing I found that if the database was opened by Access 2.0 (or a VB3 16 bit application), and then subsequently a Access 2000 (or VB6 32 bit application) opened the database, then...
3
2183
by: Nigel C | last post by:
I have been tasked with converting a legacy Access 2 system to Access 2000. This in itself is not the issue. I have a copy of the Program, Data and SYSTEM.MDA file used by the client. However, I can not gain access to the programs as I do not have a copy of Access 2 to an know nothing about the access security model to be able to gain access to the system. When I try to open the PROGRAM file I get the following message - "You don't...
4
3538
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The objective in utilizing this new deployment method is to reduce the maintenance overhead as well as making it easier for my users to setup and run the application initially. I have VS 2002, Windows XP, Access XP(2000 format). He is my problem....
49
3238
by: Mell via AccessMonster.com | last post by:
I created databases on Access 2003 and I want to deploy them to users. My code was also done using 2003. If they have Ms Access 2000 or higher, will they be able to use these dbs with all code, etc? Please explain -- Message posted via http://www.accessmonster.com
10
2199
by: Walshi | last post by:
Hi all, I'm a relative newby to access and VBA etc. My forms and tables etc are working great and saving lots of time...However... I have two databases with the exact same table format. I want db1 to be used to input data by a remote operator, when she is ready I want her to be able to click a control button to email her new data to db2. This new data will be added to the table in db2 ready for further processing.
13
13254
yolenman
by: yolenman | last post by:
Hello - This is my first posting to this group, so please bear with me. Also note, that while I'm intelligent, databases are not in my field of knowledge. I'm working with a small limousine company. They presently have about 4 networked computers, all running Windows XP (w/SP2) and Microsoft Office 2000 (specifically Access 2000) - and a plain jane p3 server also running Windows XP (w/sp2) with Office 2000 loaded onto it. These...
9
2424
by: O | last post by:
I need to do some lookups and updates on some legacy Access 2.0 files (they've from another vendor and I'm not in a position to update them). I was successful using VB6, but I've moved on to VS 2005 and ADO and having some serious problems. Here's the scenario: 2 people have the same Access 2.0 databases running in the Access 2.0 application.
0
9666
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10413
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10200
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10145
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
9986
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9021
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7530
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
4094
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3707
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.