Hello All!
I have a very simple query in Access 2000 that I run a search form off of, with the end result being a report. The form searches for From Date, To Date and GL#. The GL# is entered into the database by the users as 0000-0000-000 (except with numbers of course). But, now they only want to report on the first 8 numbers without the 3 last numbers. So, for example: If they had the following table and they searched from 06-01-07 to 06-30-07 and only wanted to report on 1234-1234, and they don't care what the last 3 numbers are:
Date GL
06-01-07 1234-1234-123
06-05-07 1234-1234-223
06-10-07 5555-5555-555
06-15-07 1234-1234-123
06-20-07 6666-5666-666
06-25-07 1234-1234-111
They want it to return:
06-01-07 1234-1234-123
06-05-07 1234-1234-223
06-15-07 1234-1234-123
06-25-07 1234-1234-111
How can I specify this in the query for them to only input "1234-1234" on the search form?
I put a formula in a GL field and put, GL:Left([GL],9), it returns what I want, but can't search on it, if that makes sense.
I hope I make sense to someone!!! =)
Thanks,
Melissa
I have a very simple query in Access 2000 that I run a search form off of, with the end result being a report. The form searches for From Date, To Date and GL#. The GL# is entered into the database by the users as 0000-0000-000 (except with numbers of course). But, now they only want to report on the first 8 numbers without the 3 last numbers. So, for example: If they had the following table and they searched from 06-01-07 to 06-30-07 and only wanted to report on 1234-1234, and they don't care what the last 3 numbers are:
Date GL
06-01-07 1234-1234-123
06-05-07 1234-1234-223
06-10-07 5555-5555-555
06-15-07 1234-1234-123
06-20-07 6666-5666-666
06-25-07 1234-1234-111
They want it to return:
06-01-07 1234-1234-123
06-05-07 1234-1234-223
06-15-07 1234-1234-123
06-25-07 1234-1234-111
How can I specify this in the query for them to only input "1234-1234" on the search form?
I put a formula in a GL field and put, GL:Left([GL],9), it returns what I want, but can't search on it, if that makes sense.
I hope I make sense to someone!!! =)
Thanks,
Melissa