Hello, this is the problem I'm having;
I have a form that has a command button on it. When the command button is clicked, a
parameter box pops up asking for a whole or partial number. I created a
query using to tables. In one table I selected a field called Document_ID
along with other fields to be on the query and in the other table I selected
Referenced_ID and Reference_Type. The
Document_ID field, column contains just numbers. One Document ID has many other numbers which are (Reference_ID)
I set the parameter criteria at query design view section under the Document_ID column. Then I created a report using the query. When I go to the form
and click on the command button, it prompts me for a number or any number, I enter a whole
number or just a partial number, then it works good. It opens up the report and get the results
The whole point of doing this is that if a user don't know the whole number of a document, he/she can enter the first, second number, etc, then Access gives him/her a list of numbers starting with the first or second digit. But it 's only looking in one column. I'd like to be able to search in the
Document ID column and Reference_ID column at the same time. Remember those two fields are in separate tables. Can Access do something like this?
Here is an example of what trying to do
tblDocuments
Document_ID
300.00
200.00
450.00
320.00
360.00
tblReference
Reference_ID
3030000
3120000
3010000
2340980
4170000
For example, If I don't know the whole number to a document or reference, I'd like to be able to type in the number 30 and get the following results;
300.00 Document Type
3030000 Reference Type
3010000 Reference Type
or type in the number 3 and have Access give me the following results;
300.00 Document Type
320.00 Document Type
360.00 Document Type
3030000 Reference Type
3120000 Reference Type
3010000 Reference Type
I'd appreciate any help you can give me.
Rita
I have a form that has a command button on it. When the command button is clicked, a
parameter box pops up asking for a whole or partial number. I created a
query using to tables. In one table I selected a field called Document_ID
along with other fields to be on the query and in the other table I selected
Referenced_ID and Reference_Type. The
Document_ID field, column contains just numbers. One Document ID has many other numbers which are (Reference_ID)
I set the parameter criteria at query design view section under the Document_ID column. Then I created a report using the query. When I go to the form
and click on the command button, it prompts me for a number or any number, I enter a whole
number or just a partial number, then it works good. It opens up the report and get the results
The whole point of doing this is that if a user don't know the whole number of a document, he/she can enter the first, second number, etc, then Access gives him/her a list of numbers starting with the first or second digit. But it 's only looking in one column. I'd like to be able to search in the
Document ID column and Reference_ID column at the same time. Remember those two fields are in separate tables. Can Access do something like this?
Here is an example of what trying to do
tblDocuments
Document_ID
300.00
200.00
450.00
320.00
360.00
tblReference
Reference_ID
3030000
3120000
3010000
2340980
4170000
For example, If I don't know the whole number to a document or reference, I'd like to be able to type in the number 30 and get the following results;
300.00 Document Type
3030000 Reference Type
3010000 Reference Type
or type in the number 3 and have Access give me the following results;
300.00 Document Type
320.00 Document Type
360.00 Document Type
3030000 Reference Type
3120000 Reference Type
3010000 Reference Type
I'd appreciate any help you can give me.
Rita