Click here to Skip to main content
15,905,508 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: open a program in a vb project interface Pin
Mekong River4-Jul-06 17:33
Mekong River4-Jul-06 17:33 
AnswerRe: open a program in a vb project interface Pin
Dave Kreskowiak5-Jul-06 1:54
mveDave Kreskowiak5-Jul-06 1:54 
QuestionGood resource to understand and implement OOP techniques in my current application? Pin
Slow Learner4-Jul-06 14:05
Slow Learner4-Jul-06 14:05 
AnswerRe: Good resource to understand and implement OOP techniques in my current application? Pin
Dave Kreskowiak5-Jul-06 4:35
mveDave Kreskowiak5-Jul-06 4:35 
AnswerRe: Good resource to understand and implement OOP techniques in my current application? Pin
TristanJ28-Jul-06 4:52
TristanJ28-Jul-06 4:52 
Questionbindingsource -> datagridview howto add rows Pin
crash8934-Jul-06 9:26
crash8934-Jul-06 9:26 
AnswerRe: bindingsource -> datagridview howto add rows Pin
crash8935-Jul-06 8:39
crash8935-Jul-06 8:39 
GeneralRe: bindingsource -> datagridview howto add rows Pin
Keith Malwitz6-Jul-06 18:51
Keith Malwitz6-Jul-06 18:51 
If I correctly understand what you are trying to do, this should work for you:

For Each userRow As DataRowView in Me.userbindingsource
Dim name as String = userRow.Item("name")
If Me.invoicebindingsource.Find("name",name) = -1 Then
Me.invoicebindingsource.AddNew
Dim newRecord as DataRowView = CType(me.invoicebindingsource.Current, DataRowView)
newRecord.Item("name") = name
newRecord.Item("department") = "???"
Me.invoicebindingsource.EndEdit
Else
msgbox(name & "already exists")
End If
Next


This will iterate through the users and check for a name match in every record of the invoice table. If a match is found, it shows the message box; if not, it creates a new record and sets the name and dept fields. Hope this helps.
QuestionNeed help with Datagrid Pin
fiaolle4-Jul-06 8:27
fiaolle4-Jul-06 8:27 
AnswerRe: Need help with Datagrid Pin
Dave Kreskowiak5-Jul-06 4:39
mveDave Kreskowiak5-Jul-06 4:39 
QuestionRandomize and Unique Numbers Pin
NickiG4-Jul-06 5:41
NickiG4-Jul-06 5:41 
AnswerRe: Randomize and Unique Numbers Pin
TristanJ4-Jul-06 8:27
TristanJ4-Jul-06 8:27 
GeneralRe: Randomize and Unique Numbers Pin
NickiG5-Jul-06 2:23
NickiG5-Jul-06 2:23 
GeneralRe: Randomize and Unique Numbers Pin
TristanJ28-Jul-06 4:31
TristanJ28-Jul-06 4:31 
AnswerRe: Randomize and Unique Numbers Pin
Guffa4-Jul-06 11:24
Guffa4-Jul-06 11:24 
QuestionAdd Scrollbar Control to my form Pin
Wael Hawari4-Jul-06 5:10
Wael Hawari4-Jul-06 5:10 
AnswerRe: Add Scrollbar Control to my form Pin
Dave Kreskowiak5-Jul-06 5:44
mveDave Kreskowiak5-Jul-06 5:44 
GeneralRe: Add Scrollbar Control to my form Pin
Wael Hawari5-Jul-06 7:44
Wael Hawari5-Jul-06 7:44 
GeneralRe: Add Scrollbar Control to my form Pin
Wael Hawari5-Jul-06 7:45
Wael Hawari5-Jul-06 7:45 
GeneralRe: Add Scrollbar Control to my form Pin
Dave Kreskowiak5-Jul-06 8:24
mveDave Kreskowiak5-Jul-06 8:24 
GeneralRe: Add Scrollbar Control to my form Pin
Wael Hawari5-Jul-06 8:36
Wael Hawari5-Jul-06 8:36 
QuestionNeed Help : insert Row into ... [modified] Pin
elpens4-Jul-06 4:15
elpens4-Jul-06 4:15 
Questiondll Problem in vb 6.0 Pin
bony_baba4-Jul-06 4:02
bony_baba4-Jul-06 4:02 
Questiongood day to all... Pin
moodsey2114-Jul-06 3:08
moodsey2114-Jul-06 3:08 
AnswerRe: good day to all... Pin
Colin Angus Mackay4-Jul-06 12:20
Colin Angus Mackay4-Jul-06 12:20 

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.