Problem whit DBRW

D

David8

Hi,
When i test this code in Access and in my FP i've no problem, but in the web
site it says there's no posible to show the values. Why??
SELECT Tabla1.nombre
FROM Tabla1, Tabla2
WHERE Tabla1.nombre like (select "*" & Nombre & "*" from Tabla2)

Thannks,
David8
 
D

David8

Yes, all the site runs on ASP with FP and Access, i've a lot of queries but
only whith this one this type ofe query i've problems.
 
J

Jon Spivey

Hi,
Looks like what you want is a join - this would be the usual way to do it

SELECT T1.Nombre
FROM Table1 T1 INNER JOIN Table2 T2 ON T1.Nombre = T2.Nombre

This will give you all values for T1.Nombre that exists in Table 2. Is that
the sort of thing you want to do?

Cheers,
Jon
 
D

David8

Hi,
That's not exactly, because i want not find all the word.
If for example i've a list a names like this:

Smith
Peter
Casmesth
Josepth

I want the use put only "Sm" and the query returns all the names who
contains this letters, in the begin of the name, inthe middle or in the end.

Thanks,
David8.
 
J

Jens Peter Karlsen

Then you need to add a WHERE clause.
Something like this:
WHERE T2.Nombre LIKE & VAR &
VAR should be a variable that contains what is searched on.

Regards Jens Peter Karlsen.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

query problem 1
Select & textbox 1
Error DBRW 1
Acces & SQL Server 1
DBRW Source Change 7
Query 0
Open a Folder 1
GAL program acces in outlook 2007 2

Top