Stored Procedure

J

Joao Pedro

Hello, how can i filter the Value of a Text Box in a SP, the bellow is not
working, thanks

SELECT CP3, CPALF
FROM dbo.T_CODIGOS_POSTAIS
WHERE (CPALF = N'Forms!frmCLIENTES_GERAL!tboxCodPostal.Value')
 
B

BJ Freeman

sqlstr = "SELECT CP3, CPALF FROM dbo.T_CODIGOS_POSTAIS WHERE
(CPALF ='" & Forms!frmCLIENTES_GERAL!tboxCodPostal.Value & "'"

note: this is all one line the ' is for SQL the " is for VBA
 

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

Top