Jump to content

where .. = function input parameter


Guest BorisAro

Recommended Posts

Guest BorisAro

Hello!!SELECT * FROM Users WHERE Users.Name = 'CName'I have a sub. in VB 2005 which has as an input parameter CName.I'd like to select records with the parameter.If I write 'CName' then it looks for User.Name = "CName" and not what is in the sub. parameter.Please help

Link to comment
Share on other sites

  • 2 weeks later...

Hi,Use the CName as a parameter like Declare @CName varchar(50)Select @CName = CNameSELECT * FROM Users WHERE Users.Name = @CNameThis should work out and keep the ball rolling... :)

Hello!!SELECT * FROM Users WHERE Users.Name = 'CName'I have a sub. in VB 2005 which has as an input parameter CName.I'd like to select records with the parameter.If I write 'CName' then it looks for User.Name = "CName" and not what is in the sub. parameter.Please help
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...