G
Guest
I am using an ADP access database. I am trying to create a query. Just to
make this simple lets say there are currently two varibles in the query,
AccountNum and Date. I am trying to create a third variable called BranchNum,
but its value will vary depending on what AccountNum contains. Lets say
AccountNum = e25f
the second value in AccountNum is the branch number so in this case the
account number is from branch 2. Now BranchNum needs to be set to this value.
I have tried putting something like this into the column:
Mid([AccountNum,2,1]) and the alias would be BranchNum. But when I go to save
the query it gives me this error: ADO error: 'Mid' is not a recognized
function name. I added Microsoft DAO 3.51 object library and I still get the
same error in my query.
Anyone know how I can grab a variable from the middle of a string in a query?
make this simple lets say there are currently two varibles in the query,
AccountNum and Date. I am trying to create a third variable called BranchNum,
but its value will vary depending on what AccountNum contains. Lets say
AccountNum = e25f
the second value in AccountNum is the branch number so in this case the
account number is from branch 2. Now BranchNum needs to be set to this value.
I have tried putting something like this into the column:
Mid([AccountNum,2,1]) and the alias would be BranchNum. But when I go to save
the query it gives me this error: ADO error: 'Mid' is not a recognized
function name. I added Microsoft DAO 3.51 object library and I still get the
same error in my query.
Anyone know how I can grab a variable from the middle of a string in a query?