Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

importing text files

Forum home » Delegate support and help forum » Microsoft Access Training and help » Importing 2 text files into Access

Importing 2 text files into Access

ResolvedVersion 2007

Mairead has attended:
Access Intermediate course

Importing 2 text files into Access

From a given scenario, I have been given 2 text files to import. However, I need to have 4 tables created. I have tried to use an append query to create the other 2 tables however it is not letting me do this. I have tried to use a Make Table query which works but wont let me set primary keys saying to change duplicates. Append query isnt working either!I really really need help on this!

RE: Importing 2 text files into Access

Hi Mairead

Thanks for your question

The make table query is probably the way to go.

Initially I would choose the wizard option not to set a primary key. The problem is that the field you are choosing contains duplicate values and thus the process falls over.

Once the data is in the table you can change the design in design view. If no field contains unique values, then you could always add an autonumber field and make this the primary key.

If this doesn't work, please let me know and I will get back to you

Regards

Stephen

Thu 14 Jul 2011: Automatically marked as resolved.

Access tip:

Closing form after a certain time period

To make a form close automatically after a certain time period, you need to assign the close function to a macro.

Save the macro and ope up the form in design view. open the Properties sheet.

In the TimerInterval property enter the length of time you want the form open for. This should be in milliseconds, so for instance if you want the form open for 5 seconds enter 5000, for an minute enter 60000.

You now need to attach your macro (to execute the Close action) to the OnTimer event property of the form.



View all Access hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.