microsoft access courses - microsoft access queries and
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Access Training and help » microsoft access courses - Microsoft Access Queries and SQL

microsoft access courses - Microsoft Access Queries and SQL

resolvedResolved · Low Priority · Version Standard

replyReply Fri 13 Jul 2007, 17:03Delegate Dave said...

Dave has attended:
No courses

Microsoft Access Queries and SQL

I was trying to create a query and I found the view within Ms Access 2003 were you are able to write an sql query. I would really like to know how the sql code so that ms access will extract the fields name, address and phone number from one table and the orders that they have place from another table.

Thanks, this will really help
Dave

For upcoming training course dates see: Pricing & availability

replyReply Mon 16 Jul 2007, 09:46Trainer David said...

RE: Microsoft Access Queries and SQL

Hi Dave

I am glad you found the SQL features that Microsoft Access 2003 has to offer. The sql you need to write within Microsoft Access 2003 is: select ID1, name, address, phone number, order, ID2 from table 1, table 2
where ID1 = ID2


If you have fields that are named the same in both table you should declare the fields you want as table1.ID1 and table2.ID1 etc.

Hope this helps
David

 

Access tip:

Deleting duplicate records from a table

You cannot delete records tables where there duplicate records. A way around this is to create a new table which wont hold the duplicates. and then deleting the old table.

1. Use a make-table query based on this table only. IMPORTANT - Ensure that you include all of the fields from your original table or you may loose data.

2. Open the query's property sheet by using VIEW, QUERY, PROPERTIES, and set the Unique Values property to Yes

3. Because you have selected the Unique Values to Yes when you run the query, Access creates a new table without duplicate records. You can now delete the old table and rename the new one.

View all Access hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard