Question : Access data type issue

I have a query comparing two fields. There are both 9 digit numbers but the
Sales_Dtbk_last_call.cust_acct_nbr is a text data type
and the Sales_biz_align.cust_nbr is a long integer.
Can you show me how to format the data type of the text to a long integer so I can match the two?

Thanks! Beth
Code Snippet:
1:
2:
SELECT Sales_biz_align.enti_nbr, Sales_Dtbk_last_call.MaxOfcmplt_dt
FROM Sales_Dtbk_last_call INNER JOIN Sales_biz_align ON Sales_Dtbk_last_call.cust_acct_nbr = Sales_biz_align.cust_nbr;
Open in New Window Select All

Answer : Access data type issue

Hi ba_trainer,

Use Clng(Sales_Dtbk_last_call.cust_acct_nbr )


Good Luck!

Gary
Random Solutions  
 
programming4us programming4us