T
Trina
Hi
I Had found the solution to my problem through the forums but then
accidently deleted the macro that made it all work and now cant find the
solution that I orignally found so I am hoping some one can enlighten me.
The problem:-
to be able to search for a record by typing in part of the name and having
the "like" names being returned in a list box which when selected opens up a
form displaying all the details for that record.
The solution so far:-
I have a form called [Extra Search Module] which has an unbound text box
which the user types in the name they are looking for. called txtsearch.
I have an unbound list box whose criteria is set to:
SELECT [Account Table].[Account Number], [Account Table].[Account Name]
FROM [Account Table] WHERE ((([Account Table].[Account Name]) Like "*" &
Forms![Extra Search Module]!txtsearch & "*"));
This works just fine.
When I select a record in the list box and click a command button on the
form it opens up the account detail form as required.
The problem:-
The macro that I deleted returned the results in the list box based on the
text typed in the text box and I have tried to rebuild but cant seem to get
it. this is built in Access 2000
Can someone please let me know how to rebuild the macro.
I Had found the solution to my problem through the forums but then
accidently deleted the macro that made it all work and now cant find the
solution that I orignally found so I am hoping some one can enlighten me.
The problem:-
to be able to search for a record by typing in part of the name and having
the "like" names being returned in a list box which when selected opens up a
form displaying all the details for that record.
The solution so far:-
I have a form called [Extra Search Module] which has an unbound text box
which the user types in the name they are looking for. called txtsearch.
I have an unbound list box whose criteria is set to:
SELECT [Account Table].[Account Number], [Account Table].[Account Name]
FROM [Account Table] WHERE ((([Account Table].[Account Name]) Like "*" &
Forms![Extra Search Module]!txtsearch & "*"));
This works just fine.
When I select a record in the list box and click a command button on the
form it opens up the account detail form as required.
The problem:-
The macro that I deleted returned the results in the list box based on the
text typed in the text box and I have tried to rebuild but cant seem to get
it. this is built in Access 2000
Can someone please let me know how to rebuild the macro.