Click here to Skip to main content
15,887,683 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: I am just starting and need direction Pin
Richard MacCutchan11-Nov-14 21:07
mveRichard MacCutchan11-Nov-14 21:07 
GeneralRe: I am just starting and need direction Pin
Member 1122645912-Nov-14 22:29
Member 1122645912-Nov-14 22:29 
AnswerRe: I am just starting and need direction Pin
Mycroft Holmes11-Nov-14 21:43
professionalMycroft Holmes11-Nov-14 21:43 
GeneralRe: I am just starting and need direction Pin
Member 1122645912-Nov-14 22:27
Member 1122645912-Nov-14 22:27 
GeneralRe: I am just starting and need direction Pin
Mycroft Holmes12-Nov-14 22:35
professionalMycroft Holmes12-Nov-14 22:35 
GeneralRe: I am just starting and need direction Pin
Member 1122645913-Nov-14 22:17
Member 1122645913-Nov-14 22:17 
GeneralRe: I am just starting and need direction Pin
Member 1122645913-Nov-14 22:22
Member 1122645913-Nov-14 22:22 
QuestionHow to Set Allow Zero Length for Field using OLEDBCommand Pin
gwittlock11-Nov-14 7:35
gwittlock11-Nov-14 7:35 
I have the following code where I am updating a new field to a Table. I tried using the NULL in my statement and it does create the field but the Allow Zero length is still false in the table.

Can anyone show me the errors of my ways? Smile | :)

VB
Dim sql As String
 Dim connection As OleDbConnection
 Dim connetionString As String

 connetionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source='" & PathCMDB() & "';"

 connection = New OleDbConnection(connetionString)
 connection.Open()

 Dim cmd As OleDbCommand = New OleDbCommand(sql, connection)

 cmd.CommandText = "ALTER TABLE [Machines] ADD [CNC_Folder] Text (255) NULL"

 cmd.ExecuteNonQuery()

 connection.Close()
 connection.Dispose()

AnswerRe: How to Set Allow Zero Length for Field using OLEDBCommand Pin
Matt U.11-Nov-14 7:48
Matt U.11-Nov-14 7:48 
GeneralRe: How to Set Allow Zero Length for Field using OLEDBCommand Pin
gwittlock11-Nov-14 7:54
gwittlock11-Nov-14 7:54 
GeneralRe: How to Set Allow Zero Length for Field using OLEDBCommand Pin
Matt U.11-Nov-14 7:57
Matt U.11-Nov-14 7:57 
GeneralRe: How to Set Allow Zero Length for Field using OLEDBCommand Pin
gwittlock11-Nov-14 8:09
gwittlock11-Nov-14 8:09 
GeneralRe: How to Set Allow Zero Length for Field using OLEDBCommand Pin
Matt U.11-Nov-14 8:13
Matt U.11-Nov-14 8:13 
GeneralRe: How to Set Allow Zero Length for Field using OLEDBCommand Pin
gwittlock11-Nov-14 8:16
gwittlock11-Nov-14 8:16 
GeneralRe: How to Set Allow Zero Length for Field using OLEDBCommand Pin
Eddy Vluggen11-Nov-14 8:25
professionalEddy Vluggen11-Nov-14 8:25 
GeneralRe: How to Set Allow Zero Length for Field using OLEDBCommand Pin
gwittlock11-Nov-14 8:42
gwittlock11-Nov-14 8:42 
GeneralRe: How to Set Allow Zero Length for Field using OLEDBCommand Pin
Eddy Vluggen11-Nov-14 11:51
professionalEddy Vluggen11-Nov-14 11:51 
GeneralRe: How to Set Allow Zero Length for Field using OLEDBCommand Pin
gwittlock11-Nov-14 13:11
gwittlock11-Nov-14 13:11 
GeneralRe: How to Set Allow Zero Length for Field using OLEDBCommand Pin
Eddy Vluggen12-Nov-14 8:00
professionalEddy Vluggen12-Nov-14 8:00 
QuestionXmlReader: {none} - modified Pin
Maciej Los11-Nov-14 3:27
mveMaciej Los11-Nov-14 3:27 
GeneralRe: XmlReader: {none} Pin
PIEBALDconsult11-Nov-14 3:50
mvePIEBALDconsult11-Nov-14 3:50 
GeneralRe: XmlReader: {none} Pin
Maciej Los11-Nov-14 4:45
mveMaciej Los11-Nov-14 4:45 
GeneralRe: XmlReader: {none} Pin
vinuvasahanponniah11-Nov-14 20:04
professionalvinuvasahanponniah11-Nov-14 20:04 
GeneralRe: XmlReader: {none} Pin
Maciej Los12-Nov-14 9:17
mveMaciej Los12-Nov-14 9:17 
Questionhow to convert pdf file into tif file in Visual Basic 2008 code Pin
Virendra Singh Bhanu9-Nov-14 1:44
Virendra Singh Bhanu9-Nov-14 1:44 

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.