Click here to Skip to main content
15,900,378 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: cant show the msgbox?? Pin
campbells4-Sep-06 22:15
campbells4-Sep-06 22:15 
GeneralRe: cant show the msgbox?? Pin
Guffa5-Sep-06 6:29
Guffa5-Sep-06 6:29 
GeneralRe: cant show the msgbox?? Pin
campbells4-Sep-06 22:40
campbells4-Sep-06 22:40 
AnswerRe: cant show the msgbox?? Pin
Guffa5-Sep-06 6:35
Guffa5-Sep-06 6:35 
AnswerRe: cant show the msgbox?? Pin
S Douglas4-Sep-06 23:22
professionalS Douglas4-Sep-06 23:22 
AnswerRe: cant show the msgbox?? Pin
FeRtoll5-Sep-06 11:59
FeRtoll5-Sep-06 11:59 
AnswerRe: cant show the msgbox?? Pin
Guffa5-Sep-06 19:01
Guffa5-Sep-06 19:01 
GeneralRe: cant show the msgbox?? [modified] Pin
campbells5-Sep-06 20:24
campbells5-Sep-06 20:24 
yes! thanks for telling me... i just edit it ,it almost like my search function .... more easy way... anyway having good experience :P


Dim recselect As Recordset
Dim sql
sql = "select *from Customer where [custno]=" & "'" & ccustno.Text & "'"
'On Error Resume Next
Set recselect = DB.OpenRecordset(sql, dbOpenSnapshot)

If recselect.RecordCount = 0 Then
rs.AddNew 'Add detail to record
rs.Fields("CustNo") = ccustno.Text
rs.Fields("Customer") = UCase(ccus.Text)
rs.Fields("Area") = UCase(carea.Text)
rs.Fields("Address") = UCase(caddress.Text)
rs.Fields("Tel") = cphone.Text
rs.Fields("Fax") = cfax.Text
rs.Fields("Name") = UCase(cattn.Text)

rs.update 'update u record
rs.MoveFirst
MsgBox ("Customer data saved")

Else
MsgBox ("Customer already been create, please use the UPDATE function for update")
End If

BUT will this cause SQL injection attack??

-- modified at 2:36 Wednesday 6th September, 2006
QuestionCrystal Report Components for Deployment Program Pin
FriendlySoluations4-Sep-06 21:27
FriendlySoluations4-Sep-06 21:27 
AnswerCrystal Report Components for Deployment Program Pin
Kanniah5-Sep-06 4:48
Kanniah5-Sep-06 4:48 
GeneralRe: Crystal Report Components for Deployment Program Pin
Charles Wolfe6-Sep-06 2:04
Charles Wolfe6-Sep-06 2:04 
QuestionIs it possible to launch sub without autopostback in DDL? Pin
ii_noname_ii4-Sep-06 21:05
ii_noname_ii4-Sep-06 21:05 
AnswerRe: Is it possible to launch sub without autopostback in DDL? Pin
Parwej Ahamad4-Sep-06 21:19
professionalParwej Ahamad4-Sep-06 21:19 
AnswerRe: Is it possible to launch sub without autopostback in DDL? Pin
ii_noname_ii4-Sep-06 21:46
ii_noname_ii4-Sep-06 21:46 
GeneralRe: Is it possible to launch sub without autopostback in DDL? Pin
Dave Sexton4-Sep-06 22:03
Dave Sexton4-Sep-06 22:03 
GeneralRe: Is it possible to launch sub without autopostback in DDL? Pin
ii_noname_ii4-Sep-06 22:28
ii_noname_ii4-Sep-06 22:28 
GeneralRe: Is it possible to launch sub without autopostback in DDL? Pin
Dave Sexton5-Sep-06 0:23
Dave Sexton5-Sep-06 0:23 
GeneralRe: Is it possible to launch sub without autopostback in DDL? Pin
ii_noname_ii5-Sep-06 0:47
ii_noname_ii5-Sep-06 0:47 
GeneralRe: Is it possible to launch sub without autopostback in DDL? Pin
ii_noname_ii5-Sep-06 1:06
ii_noname_ii5-Sep-06 1:06 
QuestionType library exporter encountered a type that derives from a generic class Pin
rsegijn4-Sep-06 20:11
rsegijn4-Sep-06 20:11 
Questionclearing a data table Pin
MAJackson4-Sep-06 18:12
MAJackson4-Sep-06 18:12 
AnswerRe: clearing a data table Pin
S Douglas4-Sep-06 23:48
professionalS Douglas4-Sep-06 23:48 
GeneralRe: clearing a data table Pin
MAJackson5-Sep-06 11:57
MAJackson5-Sep-06 11:57 
GeneralRe: clearing a data table Pin
S Douglas5-Sep-06 14:14
professionalS Douglas5-Sep-06 14:14 
QuestionHow I can get the text of a textbox that is on other app? Pin
Marco22504-Sep-06 14:54
Marco22504-Sep-06 14:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.