PDA

Click to See Complete Forum and Search --> : Another Stupid DB Q


Dayo312
Jan 9th, 2000, 09:23 AM
Grr..
Another error.

Umm.. Ok I Wrote ..

SQL = "select * from categories where description like " & Chr(34) & Text1.Text & Chr(42) & Chr(34)
Data1.RecordSource = SQL
Data1.Refresh

And It said
"The Microsoft jet engine cannot find input table or query. Make sure it exists and the name spelled correct."

The Dbsourse is called "General"

Whats wrong??

jritchie
Jan 9th, 2000, 09:33 AM
So whats with all the char characters?

Try something like

Dim rRecord as Recordset
SQL = "SELECT * FROM Categories WHERE Description Like '" & Text1 & "'"

-> Categories must be a recordset name and Description must be a field in that recordset.

set rRecord = General.Open(SQL)

Any Help.

gravyboy
Jan 9th, 2000, 08:33 PM
Try



sSQL="SELECT * FROM sometable WHERE sometable.somefield='" & Chr(34) & Text1.Text & Chr(42) & Chr(34) & "';"

Data1.RecordSource=sSQL
Data1.Refresh




------------------
Matt G
Either mattg@gravyboy.fsnet.co.uk] or matt.graveston@centrica.co.uk

kishore
Jan 9th, 2000, 08:42 PM
Basically the error is saying that it could not find the table or query name Categories in your database.

You should check and see if there is 'Categories' in your database.

Good luck.