I mean that i have a search form for entering the variables for querying a database and for the price field i have this code which keeps giving a type mismatch:
txtprice.SetFocus
If txtprice.Text = "" then txtprice.Text = "*"
I tried using "@" but it didnt work
This really is a case of me being stupid but I don't know and really cannot find anywhere what Wildcard to use for a currency field, nothing seems to be working:S
thanks
i have a very simple couple of lines of code:
sql = "SELECT Itemid FROM [tblstock]; WHERE itemid = txtitemid.text"
adostock.RecordSource = sql
adostock.Refresh
and i keep getting the error in the subject line. I really can't understand the problem because i don't see what else i could put in...
my problem is basically as the title suggests. I havea search form with multiple text boxes in, when I run the query i need it to check to see if the text box is empty and if not add it to the filtering criteria.
Any help would be much appreciated because I'm stumped
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.