![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I am trying to select rows from a database depending on 2 conditions. Tried to use AND but this did not work (see code below). Any suggestions?
cmd.CommandText="select name,perm_id,permid_moth from motherno where hpid = "&txthhidm.Text&" & AND & motherno = "&(txthhidm.Text&*100)+&txtmemno.Text&"" Regards |
|
|||
|
Hi giannimaione,
Thanks for the help. txthhidm and txtmemno are both numeric value. I'm not clear about the last two quotes have been dropped from my code. Off course, the syntax generated error. Could you please explain ? Best regards, Mozaharul |
|
||||
|
Hi mozaharul
Quote:
1) & AND & 2) &txtmemno.Text&"" Sorry, but i am not more explain , and i am sorry for my bad english ![]()
__________________
Gianni Maione |
|
||||
|
Hi mozaharul
i have missing quotesQuote:
cmd.CommandText="select name,perm_id,permid_moth from motherno where hpid = '" & txthhidm.Text & "' AND motherno = " & ((txthhidm.Text*100) + txtmemno.Text) ![]()
__________________
Gianni Maione |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SQL Lite Lock | 2220 | Questions & Help Needed | 4 | 09-03-2008 10:09 AM |
| sql lite | jchal | Questions & Help Needed | 1 | 11-16-2007 12:41 PM |
| Basic4ppc Lite ? | Erel | Chit Chat | 14 | 10-18-2007 09:58 PM |
| How to select a directoty | sloopa | Questions & Help Needed | 7 | 07-02-2007 04:06 PM |
| About Select ... case | JJM | Questions & Help Needed | 2 | 05-22-2007 07:55 AM |