View Single Post
  #2 (permalink)  
Old 06-02-2008, 01:02 PM
giannimaione's Avatar
giannimaione giannimaione is offline
Senior Member
 
Join Date: Apr 2007
Location: Naples, Italy
Posts: 156
Send a message via Skype™ to giannimaione
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hi Mozaharul,

try it:

cmd.CommandText="select name,perm_id,permid_moth from motherno where hpid = " & txthhidm.Text & " AND motherno = " & ((txthhidm.Text*100) + txtmemno.Text)

or
YourQuery="select name,perm_id,permid_moth from motherno where hpid = " & txthhidm.Text & " AND motherno = " & ((txthhidm.Text*100) + txtmemno.Text)
msgbox(YourQuery):' only for testing
cmd.CommandText=YourQuery

are you sure that txthhidm and txtmemno are ONLY numeric value???
__________________
Gianni Maione
Reply With Quote