Click here to Skip to main content
15,888,968 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Vb6 ADODC Login failed for the user knows in Windows 7 Pin
Richard MacCutchan28-Mar-13 0:05
mveRichard MacCutchan28-Mar-13 0:05 
GeneralRe: Vb6 ADODC Login failed for the user knows in Windows 7 Pin
marco.bruni28-Mar-13 3:45
marco.bruni28-Mar-13 3:45 
GeneralRe: Vb6 ADODC Login failed for the user knows in Windows 7 Pin
Richard MacCutchan28-Mar-13 3:56
mveRichard MacCutchan28-Mar-13 3:56 
AnswerRe: Vb6 ADODC Login failed for the user knows in Windows 7 Pin
Eddy Vluggen28-Mar-13 7:22
professionalEddy Vluggen28-Mar-13 7:22 
AnswerRe: Vb6 ADODC Login failed for the user knows in Windows 7 Pin
Kenneth Haugland31-Mar-13 18:37
mvaKenneth Haugland31-Mar-13 18:37 
QuestionConcurrency violation or Insert Pin
IgaBaro26-Mar-13 5:17
IgaBaro26-Mar-13 5:17 
AnswerRe: Concurrency violation or Insert Pin
Eddy Vluggen27-Mar-13 9:39
professionalEddy Vluggen27-Mar-13 9:39 
GeneralRe: Concurrency violation or Insert Pin
IgaBaro28-Mar-13 3:11
IgaBaro28-Mar-13 3:11 
Quote:
Has it been set as a primary key in the database?

Yes its set as PRIMARY KEY as well Unique.

Quote:
How do the update and insert-statements look like? Can you post them here?


I have posted this and here it is again.

VB
Private Sub SaveBtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveBtn.Click
        Dim m, fe, F, P, H As String
        Dim STPhoto As Image
        Dim EnrollDate As Date
  EnrollmentDateTxt.Value = Format(Now.Date, "yyyy-MM-dd")
  EnrollDate = EnrollmentDateTxt.Value


 Dim TA As StudentEnrollmentDataSetTableAdapters.StudentEnrollmentTblTableAdapter

TA.Insert(StudentIDTxt.Text, TelephoneTxt.Text, FirstNameTxt.Text, MiddleNameTxt.Text, LastNameTxt.Text, LevelTxt.Text, ClassroomTxt.Text, GuardianFnTxt.Text, GuardianLnTxt.Text, InstructorLnTxt.Text, m, fe, F, P, H, StudentPhoto.Image, DoBTxt.MaxDate, EnrollDate.Date, GraduationDateTxt.MaxDate, AboutStudentTxt.Text)


UPDATE: I created another Table with the StudentID not set as a primary key & Unique unchecked and it seems to work while its still Auto incremental set. I think It doesn't like the Auto incremental/primary key & Unique all at the set to true at the same time.

Can anyone tell me why My TA.Insert(StudentPhoto, EnrollDate) doesn't work?? StudentPhoto is set to Image and Enrolldate is using DateTimePicker. what am I doing wrong??

Thank you in advance.
AnswerRe: Concurrency violation or Insert Pin
Eddy Vluggen28-Mar-13 7:15
professionalEddy Vluggen28-Mar-13 7:15 
QuestionHow make steganography in video (.AVI) Pin
Khairul Imam25-Mar-13 11:42
Khairul Imam25-Mar-13 11:42 
AnswerRe: How make steganography in video (.AVI) Pin
GuyThiebaut25-Mar-13 22:45
professionalGuyThiebaut25-Mar-13 22:45 
QuestionI want to do all the functionalty of painting on an image?? Pin
Lolo Hyun25-Mar-13 6:55
Lolo Hyun25-Mar-13 6:55 
AnswerRe: I want to do all the functionalty of painting on an image?? Pin
Richard MacCutchan25-Mar-13 7:39
mveRichard MacCutchan25-Mar-13 7:39 
AnswerRe: I want to do all the functionalty of painting on an image?? Pin
Eddy Vluggen25-Mar-13 8:06
professionalEddy Vluggen25-Mar-13 8:06 
Generalkeyboard controlling arduino rc car with UDP packets (VB 2008) Pin
Jose Sallamanca20-Mar-13 8:59
Jose Sallamanca20-Mar-13 8:59 
AnswerRe: keyboard controlling arduino rc car with UDP packets (VB 2008) Pin
MicroVirus27-Mar-13 4:11
MicroVirus27-Mar-13 4:11 
Questionremove or disconnect disk/sotrage Pin
V1rus9r20-Mar-13 3:51
V1rus9r20-Mar-13 3:51 
AnswerRe: remove or disconnect disk/sotrage Pin
Richard MacCutchan20-Mar-13 4:04
mveRichard MacCutchan20-Mar-13 4:04 
GeneralRe: remove or disconnect disk/sotrage Pin
V1rus9r20-Mar-13 6:40
V1rus9r20-Mar-13 6:40 
QuestionAccess VBA Timing Problem Pin
Ingo19-Mar-13 2:12
Ingo19-Mar-13 2:12 
AnswerRe: Access VBA Timing Problem Pin
Dave Kreskowiak19-Mar-13 3:37
mveDave Kreskowiak19-Mar-13 3:37 
GeneralRe: Access VBA Timing Problem Pin
Ingo19-Mar-13 4:41
Ingo19-Mar-13 4:41 
GeneralRe: Access VBA Timing Problem Pin
Dave Kreskowiak19-Mar-13 7:18
mveDave Kreskowiak19-Mar-13 7:18 
GeneralRe: Access VBA Timing Problem Pin
Ingo19-Mar-13 7:25
Ingo19-Mar-13 7:25 
GeneralRe: Access VBA Timing Problem Pin
Dave Kreskowiak19-Mar-13 8:10
mveDave Kreskowiak19-Mar-13 8:10 

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.