Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

add two zero behind a number

Status
Not open for further replies.

kongyu

MIS
Apr 22, 2002
10
0
0
MY
in my sql table got a table name POORDLIN_SQL. Inside this table have a field name ord_no. The format of this field is xxxxxx00 (meaning 6 digit number follow by 2 fixed zero behind).

Below are my VBA code:
dbs.Open "Select item_no from POORDLIN_SQL where ord_no = '" & Me.PORelNo.Text & "' and line_no = 1 "

From the code, Me.PORelNo.Text only read the digit number from SQL, it do not know to add two zero behind. (Meaning ord_no = xxxxxx, not = xxxxxx00)

How can i correct this VBA statement??

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top