access+course+training - access queries
Microsoft Office Training verified by visa - mastercard securecode about microsoft training company london ukadd this page to your favourites/bookmarksAdd to favourites
view a printable version of this pagePrintable version
email this page to somebodyEmail this page
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Access Training and help » access+course+training - Access queries

access+course+training - Access queries

The UK's most regular instructor-led training courses.
Training information: access+course+training · Microsoft access courses · Microsoft Access Training London
See also · microsoft access training · access vba courses · access database course

resolvedResolved · Low Priority · Version Standard

Access queries

Lucy has attended:
Excel Intermediate course
Excel Advanced course
Access Introduction course
Access Intermediate course

by - delegate Lucy [13 posts] (2007 Jul 26 Thu, 11:36) replyReply

When I try to run and create a query to pull out all of my stockists who we want to sell to (from a Status--- 'want' table), it returns no results. The query doesn't say it has any problems though, what am I doing wrong?

thanks,
Lucy

Access Intermediate 1 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
2003 2008 Sep 9 Tue Bloomsbury 3 book now £210 £215
2002/XP 2008 Sep 11 Thu Tooting 0 FULL    
2003 2008 Sep 19 Fri Bayswater 5 book now £195 £205
2007 2008 Sep 23 Tue Bloomsbury 5 book now £212 £224
2002/XP 2008 Sep 24 Wed Tooting 0 FULL    
2003 2008 Oct 7 Tue Southwark 6 book now £193 £215
Full Schedule: See all 72 Access Intermediate course dates.
Bookings currently available until 24th November 2009.

RE: Access queries

by - trainer Richard platinum contributer[788 posts] (2007 Jul 26 Thu, 16:40) replyReply

Hi Lucy

Please will you click on VIEW and then SQL. If you send me that code ni a reply to this post, I will take a look for you.

Regards

Richard

RE: Access queries

by - delegate Lucy [13 posts] (2007 Jul 26 Thu, 16:45) replyReply

SELECT Retailer.RetailerID, Retailer.Name, Retailer.Status
FROM Retailer INNER JOIN Branch ON Retailer.RetailerID = Branch.RetailerID
WHERE (((Retailer.Status)=[the Status]));


Hi Richard,
there it is, thank you-

LR

RE: Access queries

by - delegate Lucy [13 posts] (2007 Jul 26 Thu, 16:45) replyReply

SELECT Retailer.RetailerID, Retailer.Name, Retailer.Status
FROM Retailer INNER JOIN Branch ON Retailer.RetailerID = Branch.RetailerID
WHERE (((Retailer.Status)=[the Status]));


Hi Richard,
there it is, thank you-

LR

RE: Access queries

by - trainer Richard platinum contributer[788 posts] (2007 Jul 30 Mon, 11:17) replyReply

Thanks Lucy

The SQL statement gives me a quick look at what you are trying to create. The basic statement looks fine, and what it looks like is that you are filtering using a variable [the status].

1 .
What I suggest is removing the criteria from the query, and seeing what results you get.

2.
If you get the records showing, then add just a simple critieria (ie. Yes - or whatever one of the values are).

3.
That should then filter the results yuo are looking for. If that works, then you know that the [the status] field is the issue.


If 1-3 return no results, then I suggest you look at the way you built the relationships between the tables. From what it looks like, it is just two tables, with a relationship on [RetailerID].

If this is the case, then check the type of relationship, by clicking on the line between the two tables. There should be 3 options, and depending on which one you choose, the results will differ. Generally Option 1 will give you the standard results, whereas 2 and 3 are more customised, and sometimes do not return any values.


Let me know if that helps.

Regards

Richard



Related articles

· Quick MS Access Training: Creating Custom Database Tables in 12 Simple Steps
· Tips for designing databases in Microsoft Access
· Want to Become the Office Hero? MS Project Training Could be the Answer
· Microsoft Access: Unleash the True Potential Today
· Access VBA Handling Errors and Debugging Code

Access tip:

Space marks

It is good practice not i to have space marks for field names as this can lead to problems when using queries or VBA code. It is much better to use an underscore charcter to represent spaces in field names

View all Access hints and tips

Institute of IT Training - Accredited Training Provider Microsoft Certified Partner
microsoft office
Microsoft Office Specialist Authorised Testing Centre (MOS and MCAS)

Prodigy Platinum Learning Partner

Institute of IT Training - Accredited Training Provider Association of Computer Trainers Valid HTML 4.01 Transitional
Valid CSS Markup

secure online payments - visa - mastercard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Training by application Main information pages See also

Access courses
DreamWeaver courses
Excel courses
MS Project courses
Outlook courses
PowerPoint courses
VBA courses
Word courses
(more...)

Public scheduled courses
On-site training
Closed company courses

Microsoft Office training
Pricing and availability
Training schedule
Training venues

Access training
Dreamweaver training
Excel training
MS Project training
PowerPoint training

London Computer Training
Computer Training London

Microsoft Access training
Microsoft Excel training
Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training

Time Management Course London

Interested in Access training? Please see the following pages:
microsoft access courses · microsoft training access course
microsoft+access+training · access courses in london

Training Information
AddThis Social Bookmark Button What's this?
Add to Del.icio.us Add to Facebook Add to Digg Add to Reddit Add to Google Add to Yahoo Add to Diigo Add to Mr. Wong Add to Linkarena Add to Power Oldie Add to Folkd Add to Jumptags Add to Upchuckr Add to Simpy Add to StumbleUpon Add to Slashdot Add to Netscape Add to Furl Add to Spurl Add to Blinklist Add to Blogmarks Add to Technorati Add to Newsvine Add to Blinkbits Add to Ma.Gnolia Add to Smarking Add to Netvouz