M
Mark
Hello all,
I’m am using a queryDef to pass some variables to a query. I am passing
numbers from a combo boxes that have leading zeros. However, when it passes
it drops the leading zeros. How can I stop this?
Setup:
CbZone = 01
CbRow = “04â€
Dim qdfTemp as DAO.QueryDef
vSQL = “ Select * from tbLocation where zone = “ & cbZone & “ and row = “ &
cbRow & “.
set qdfTemp – currentDb.QueryDefs(“qrTempâ€)
qdfTemp.SQL = vSQL
Docmd.OpenQuery “qrTempâ€
Once ran I look at the query and the leading zeros are gone.
I’m am using a queryDef to pass some variables to a query. I am passing
numbers from a combo boxes that have leading zeros. However, when it passes
it drops the leading zeros. How can I stop this?
Setup:
CbZone = 01
CbRow = “04â€
Dim qdfTemp as DAO.QueryDef
vSQL = “ Select * from tbLocation where zone = “ & cbZone & “ and row = “ &
cbRow & “.
set qdfTemp – currentDb.QueryDefs(“qrTempâ€)
qdfTemp.SQL = vSQL
Docmd.OpenQuery “qrTempâ€
Once ran I look at the query and the leading zeros are gone.