How to compare a number field and a text field

L

Laurie

I have two tables that I need to compare the data. In one
table the field is a text field even though it has a
single digit number in it. The other table has the data
as a number field. How can I convert one field inside a
query so that I can compare the fields to one another
without a datatype mismatch?

Thank you.

Laurie
 
V

Van T. Dinh

Use one of the VBA Conversion functions: Val(), CByte(),
CInt(), Clng().

Check Access VB Help on these functions.

HTH
Van T. Dinh
MVP (Access)
 

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

Top