Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: Search fields in Database


Message #1 by "Vibha Prajapati" <vprajapati@i...> on Wed, 11 Oct 2000 21:10:08 +0100
validate your fields if they are null or empty don't include them

for example
SQlString ="select * from table "
SQlString = SQLString + "where LastName = '" & txtLastName & "',"
if trim(txtFirstName) <> "" then
	UpdateSQL = UpdateSQL & " FirstName = '" & txtFirstName & "',"
end if
etc etc
until you reach all field
you need a variable on top to know which fields is last to ommit the last
comma
good luck



  Return to Index