Click here to Skip to main content
15,902,445 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# Sql INSERT statment Pin
Carsten Zeumer9-Jun-05 1:03
Carsten Zeumer9-Jun-05 1:03 
GeneralRe: C# Sql INSERT statment Pin
V.9-Jun-05 1:02
professionalV.9-Jun-05 1:02 
GeneralRe: C# Sql INSERT statment Pin
Colin Angus Mackay9-Jun-05 1:06
Colin Angus Mackay9-Jun-05 1:06 
GeneralRe: C# Sql INSERT statment Pin
Rinventive9-Jun-05 1:13
Rinventive9-Jun-05 1:13 
GeneralRe: C# Sql INSERT statment Pin
Dave Kreskowiak9-Jun-05 6:38
mveDave Kreskowiak9-Jun-05 6:38 
GeneralRe: C# Sql INSERT statment Pin
Rinventive9-Jun-05 1:28
Rinventive9-Jun-05 1:28 
GeneralRe: C# Sql INSERT statment Pin
Colin Angus Mackay9-Jun-05 1:31
Colin Angus Mackay9-Jun-05 1:31 
GeneralRe: C# Sql INSERT statment Pin
Rinventive9-Jun-05 1:34
Rinventive9-Jun-05 1:34 
Here is the INSERT statment I started with, this is from a previous project and it works fine.

string sqlString = "INSERT INTO Members (MemberNum, FirstName, LastName, Address, City, Province, PostalCode, Status, Balance ) VALUES ("
+ newNum.ToString()
+ ",'" + FirstName.Text
+ "','" + LastName.Text
+ "','" + Address.Text
+ "','" + City.Text
+ "','" + comboBox1.Text
+ "','" + PostalCode.Text.ToUpper()
+ "','" + GetMemberStatus()
+ "'," + BalanceOwing.Text
+ ")";

and the db information

MemberNum (autonumber)
LastName (text)
FirstName (text)
Address (text)
City (text)
Province (text)
PostalCode (text)
Status (text)
Balance (number)

Sorry to be so much trouble and thanks for your time
GeneralRe: C# Sql INSERT statment Pin
Rinventive9-Jun-05 1:42
Rinventive9-Jun-05 1:42 
GeneralRe: C# Sql INSERT statment Pin
Rinventive9-Jun-05 1:53
Rinventive9-Jun-05 1:53 
GeneralRe: C# Sql INSERT statment Pin
vincent.reynolds9-Jun-05 5:50
vincent.reynolds9-Jun-05 5:50 
QuestionListView multiline items? Pin
george ivanov8-Jun-05 22:58
george ivanov8-Jun-05 22:58 
AnswerRe: ListView multiline items? Pin
Philip Price8-Jun-05 23:18
Philip Price8-Jun-05 23:18 
AnswerRe: ListView multiline items? Pin
Dave Kreskowiak9-Jun-05 6:32
mveDave Kreskowiak9-Jun-05 6:32 
GeneralPlease Help! Function on Separate Form Pin
DJdC8-Jun-05 22:56
DJdC8-Jun-05 22:56 
GeneralRe: Please Help! Function on Separate Form Pin
Carsten Zeumer8-Jun-05 23:19
Carsten Zeumer8-Jun-05 23:19 
GeneralCadi's Solution Pin
DJdC8-Jun-05 23:45
DJdC8-Jun-05 23:45 
GeneralRe: Cadi's Solution Pin
Carsten Zeumer9-Jun-05 0:03
Carsten Zeumer9-Jun-05 0:03 
GeneralRe: Please Help! Function on Separate Form Pin
S. Senthil Kumar8-Jun-05 23:21
S. Senthil Kumar8-Jun-05 23:21 
GeneralSenthil's Solution Pin
DJdC8-Jun-05 23:41
DJdC8-Jun-05 23:41 
GeneralRe: Please Help! Function on Separate Form Pin
Christian Graus9-Jun-05 0:52
protectorChristian Graus9-Jun-05 0:52 
GeneralGet reference to Form1. Pin
Khoa Bui9-Jun-05 3:05
Khoa Bui9-Jun-05 3:05 
GeneralRe: Get reference to Form1. Pin
Dave Kreskowiak9-Jun-05 6:29
mveDave Kreskowiak9-Jun-05 6:29 
GeneralRe: Get reference to Form1. Pin
Christian Graus9-Jun-05 11:18
protectorChristian Graus9-Jun-05 11:18 
GeneralRe: Get reference to Form1. Pin
Dave Kreskowiak9-Jun-05 14:55
mveDave Kreskowiak9-Jun-05 14:55 

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.