Solved

A problem with a simple query MS Access 10

Posted on 2016-08-01
11
25 Views
Last Modified: 2016-08-22
I have a simple query that I use to populate a listbox with transactions, selecting the required account by preloading a property.  It will select one account but not the other.

I have attached a small simple test database to demonstrate the problem.

This is driving me mad and I would greatly appreciate any help I can get.

Thanks in advance,

Clive
0
Comment
Question by:CRB1609
  • 8
  • 3
11 Comments
 

Author Comment

by:CRB1609
ID: 41738448
DB attached.
Database1.accdb
0
 
LVL 75
ID: 41738459
There is something wrong with the data in the 2/3 values in the combo

see image - note Spaces or what ever they aredata
0
 

Author Comment

by:CRB1609
ID: 41738470
Thanks, Joe.

Can you suggest any way of discovering what the leading characters are?  Standard Access things I've tried, don't throw any light.
0
 
LVL 75
ID: 41738473
more data
0
 
LVL 75
ID: 41738474
Well ... not sure that is the problem.  Notice the combo  box account selected above is not in Import table.  So that is the actual problem
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 75
ID: 41738476
The spaces are WEIRD.  In the Immediate Window, Trim removes the Spaces ... so they must be spaces.
Not sure what is going on
0
 
LVL 75
ID: 41738480
Two out of three of the numbers in the combo are not in the Import table.
So ... it's actually working correctly ...
0
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Access MVP) earned 500 total points (awarded by participants)
ID: 41738481
This works ... when all combo values are in the Import Table.
Database1MX01.accdb
0
 

Author Comment

by:CRB1609
ID: 41738589
Thanks, Joe.

I changed the query on the account field to read the accounts table, and one of the account numbers was corrupted.  Fixed that and now all is good.

Clive
0
 
LVL 75
ID: 41739415
Cool.  Don't forget to close the question :-)
0
 
LVL 75
ID: 41764165
OP confirmed that  my solution worked
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now