Query similar data

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi, I have a list of numbers in an access table that have a leading zero.
The table I am trying to query with has the same list but does not always
have this leading zero. Is there a way to do a similar type query? The
numbers are 10 digits. Thanks in advance, I'm very new to this.
 
If they have leading zeroes they must be text so if you want to compare the
two sets compare Val(your number)
Mathematicallly Val("00001")=Val("1")=1
 
Another way:

Where Right("0000000000" & [table1].[field1],10) = Right ("0000000000"
& [table2].[field2],10)


Chris Nebinger
 
thanks, that woks.

Bob M via AccessMonster.com said:
If they have leading zeroes they must be text so if you want to compare the
two sets compare Val(your number)
Mathematicallly Val("00001")=Val("1")=1
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top