![]() |
|
|||||||
| 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 |
|
|||
|
Hi Erel,
I am trying out this this SQL expression SUB btnExecute_click cmd.CommandText=" SELECT DISTINCT NAME, RANK, CODE FROM CUSTS ORDER BY NAME" cmd.ExecuteTable("table1",0) cmd.CommandText=" SELECT DISTINCT DUTY, DATE1, TIME, FLTNO, DATE2 FROM CUSTS WHERE NAME='JOHN' ORDER BY DATE1" cmd.ExecuteTable("table2",0) end sub From the WHERE NAME='JOHN', how could I replace 'JOHN' form a textbox.text? Thanks TC |
|
|||
|
Dear TC,
Have a look at the demo-program by Giannimaione (thread Sample sqllite application) It is a very short program but it contains many useful hints, amongst them the answer to your question. all the best, Björn ***************************** quote=CHR(39) Sub Button1_Click 'insert data MyData1=quote & "ALFA" & quote 'or MyData1=quote & textbox.Text & quote MyData2=Quote & "BETA" & quote text="insert into NameTable (Field1, Field2) values (" text=text & MyData1 & "," & MyData2 & ")" Msgbox(text) cmd.CommandText=text cmd.ExecuteNonQuery End Sub |
|
|||
|
Hi AnyOne with SQL knowledge,
1st of all thanks for all the help, now I'm learning to program SQL slowly. I have a problem now with WHERE statement: If WHERE = ' name with a' in between' How do I go around with this ' problem? Thanks |
![]() |
| 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 |
| A few questions regarding FormLib | N1c0_ds | Questions & Help Needed | 6 | 09-19-2008 03:34 AM |
| Newbie Questions | Bruno | Questions & Help Needed | 2 | 05-05-2008 07:45 PM |
| Questions on SpecialKeys | HARRY | Questions & Help Needed | 5 | 02-26-2008 02:55 PM |
| One of my stupid questions.... | Cableguy | Questions & Help Needed | 7 | 01-27-2008 11:26 AM |
| More SQL questions | HARRY | Questions & Help Needed | 2 | 01-04-2008 11:15 AM |