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

updating table has primary

Forum home » Delegate support and help forum » Microsoft Access VBA Training and help » Updating a table that has primary keys in it

Updating a table that has primary keys in it

ResolvedVersion 2007

Martin has attended:
Access VBA course
SQL Server course

Updating a table that has primary keys in it

Hi,

I have a database with several tables in it each linked by not one but five (5) fields that form a primary key. The normal way of inputing data is via a form but I have 150 records to add and I have all the data in an excel spreadsheet so would like to do a bulk add and update.

All the data I want to add is to a single table that has all the keys contained within it. I have tried importing the data to the table and this works, in that I can see the additional data in the table. However, when I look at the data via the form I don't see the new records.

Any help would be much apreciated.

Regards

Martin

RE: Updating a table that has primary keys in it

Hi Martin

Sounds a bit of a puzzle. If the data gets imported into your table it should appear in your form. Would you be able to email your database to info@stl-training.co.uk ?

Best to zip the file and ask for it to be forwarded to me.
Thanks.

Regards
Doug Dunn
Best STL


RE: Updating a table that has primary keys in it

After several attempts I have managed to write an update query that not only updates the primary table but also its linked table that also has all five primary fields in it.

Little convoluted but can see why I needed to it this way.

A good learning session.

Thanks

Martin

RE: Updating a table that has primary keys in it

Well done.
Sounds like you have solved it!

Doug
Best STL

 

Training courses

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Access tip:

Related tables

When you have related tables such as Customers and their Orders, the Customer table is the Primary table.

Open the Customers table in datasheet view and go to the Home Tab and Records group. Click on the More option and choose Subdatasheet and then click on Subdatasheet again. Now choose the related table (Orders) and click ok.

Now you can click the + symbol by each company to show the related orders.

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.