>i've done it. sorry for troubling you.
>
[quoted text clipped - 11 lines]
>> I might use..is this what you're after?
>> Jerry
hi,
so this is wat i've got;
SELECT tblFilm.FilmID, tblFilm.FilmTitle, tblFilm.Format,
tblFilm.ActorsActresses, tblFilm.Director, tblFilm.Genre, tblFilm.Link,
tblFilm.RentPriceCode, tblFilm.Rating, tblFilm.Certificate, tblFilm.CopyNo,
tblFilm.DatePurchased, tblFilm.Active, tblFilm.Available, tblFilm.Condition,
tblFilm.DateReleased
FROM tblFilm
WHERE (((tblFilm.ActorsActresses)="*" & forms!frmFilm2!txtActorSearch & "*")
And ((tblFilm.Director)="*" & forms!frmFilm2!txtDirectorSearch & "*"));
thats the sql for the query.(above)
below is the code i have for the form; (Note it may look confusing, because
i created 2 queries to do searches, but now i;m trying your way);
Private Sub cmdActorSearch_Click()
DoCmd.OpenQuery "qryFilmQuery1"
txtActorSearch = ""
End Sub
Private Sub cmdDirectorSearch_Click()
DoCmd.OpenQuery "qryFilmQuery1"
txtDirectorSearch = ""
End Sub
i;ve tried wat u gave me, and i cant get it to work. i tihnk it might be teh
sql statement? (ive never seen the '*' and '&' used before? so i dont know
how to use them. Its probably a syntax error.
thanx
dev
> yes
>
[quoted text clipped - 27 lines]
> >> I might use..is this what you're after?
> >> Jerry
Jerome Ranch - 25 Feb 2006 16:37 GMT
>i;ve tried wat u gave me, and i cant get it to work. i tihnk it might be teh
>sql statement? (ive never seen the '*' and '&' used before? so i dont know
>how to use them. Its probably a syntax error.
in the criteria of a select qry, I have this in one of my db that
works fine
Like "*" & [forms].[frmHELLO].[selWILDCARDELEMENT] & "*"
[selWILDCARDELEMENT] is a txt box in a form where the user inputs any
string to find the string in a field; they double click a button that
has a docmd.requery
But it looks like that's what you have in your sql below..you should
need only one query since you're wildcarding the search fields...do
you clear them after each qry?
>hi,
>
[quoted text clipped - 63 lines]
>> >> I might use..is this what you're after?
>> >> Jerry
DP - 25 Feb 2006 16:57 GMT
i done it now.
i just put an 'OR' in between the statements.
is there a way to clear all the txt boxes in a form?
i want to clear all of them, and not just one of them. (and i dont want to
type in clear for all the fields.)
thanx
dev
> hi,
>
[quoted text clipped - 63 lines]
> > >> I might use..is this what you're after?
> > >> Jerry
Jerome Ranch - 25 Feb 2006 17:50 GMT
I use a command button on the form
use an On Double Click Event
Here's an example from a db of mine
a double click clears the two cbo (in your case the txt boxes),
reloads the data source with the requery, and then clears the form
(i.e. runs the query with nothing selected)
Private Sub cmdClear_DblClick(Cancel As Integer)
Me.cboCREATORSELECT = ""
Me.cboEXPTSELECT = ""
Me.cboCREATORSELECT.Requery
Me.cboEXPTSELECT.Requery
Me.frmEXPTINFO.Requery
End Sub
you won't need but the first two where you set the txt boxes = ""
jerry
>i done it now.
>
[quoted text clipped - 80 lines]
>> > >> I might use..is this what you're after?
>> > >> Jerry
DP - 26 Feb 2006 11:04 GMT
yep, i've already done that. thanx for all yor help. i got them all working.
thanx again
dev
> I use a command button on the form
> use an On Double Click Event
[quoted text clipped - 100 lines]
> >> > >> I might use..is this what you're after?
> >> > >> Jerry