Solved

A problem with a simple query MS Access 10

Posted on 2016-08-01
11
26 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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Password on a button in Access 2013 7 34
Replace NULL Value in Crosstab query with previous day data 6 29
Access Excel export not behaving 2 25
access 7 20
In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

919 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

15 Experts available now in Live!

Get 1:1 Help Now