Click here to Skip to main content
15,920,633 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: capture packet and manipulate fields Pin
Dave Kreskowiak4-May-04 9:18
mveDave Kreskowiak4-May-04 9:18 
GeneralRe: capture packet and manipulate fields Pin
Colin Angus Mackay4-May-04 9:29
Colin Angus Mackay4-May-04 9:29 
GeneralRe: capture packet and manipulate fields Pin
babur khan4-May-04 23:03
babur khan4-May-04 23:03 
GeneralRe: capture packet and manipulate fields Pin
Colin Angus Mackay4-May-04 23:32
Colin Angus Mackay4-May-04 23:32 
GeneralRe: capture packet and manipulate fields Pin
Dave Kreskowiak4-May-04 4:24
mveDave Kreskowiak4-May-04 4:24 
GeneralRe: capture packet and manipulate fields Pin
Colin Angus Mackay4-May-04 4:33
Colin Angus Mackay4-May-04 4:33 
GeneralRe: capture packet and manipulate fields Pin
Dave Kreskowiak4-May-04 4:42
mveDave Kreskowiak4-May-04 4:42 
GeneralComboBox doesn't show last item added (but does when I use debugger) Pin
Rikard Skarp3-May-04 22:34
sussRikard Skarp3-May-04 22:34 
Hi. I'm a newbie programmer so my problem probably have an easy solution.
Here's the code that adds items to my ComboBox:


*****************************************************'
Sub loadTypCombo()
Dim recset As New ADODB.Recordset
Dim conn As ADODB.Connection
Set conn = loadDatabase(CommonDialog1.FileName)

recset.CursorType = adOpenDynamic
recset.LockType = adLockOptimistic
Set recset.ActiveConnection = conn

recset.Open "SELECT * FROM tblObjects ORDER BY Name"
While Not recset.EOF
TypCombo.AddItem (recset("name"))
recset.MoveNext
Wend
recset.Close
Set recset = Nothing
conn.Close
Set conn = Nothing
End Sub
******************************************************


The problem I have is when I run the program only 4 of the 5 records in tblObjects are added to my ComboBox, however, when I debug all 5 are added and it works like it's supposed to.

How can I fix this?

Thanks in advance, Rikard

Questionis it a modifier problem? Pin
3hrguy3-May-04 22:26
3hrguy3-May-04 22:26 
AnswerRe: is it a modifier problem? Pin
Dave Kreskowiak4-May-04 4:15
mveDave Kreskowiak4-May-04 4:15 
GeneralRe: is it a modifier problem? Pin
3hrguy4-May-04 14:54
3hrguy4-May-04 14:54 
GeneralCustom Columheader Pin
Ole1233-May-04 14:48
Ole1233-May-04 14:48 
GeneralRe: Custom Columheader Pin
superwinsock3-May-04 22:36
superwinsock3-May-04 22:36 
GeneralRe: Custom Columheader Pin
Ole1234-May-04 8:31
Ole1234-May-04 8:31 
GeneralRe: Custom Columheader Pin
superwinsock4-May-04 18:51
superwinsock4-May-04 18:51 
GeneralRe: Custom Columheader Pin
Ole1236-May-04 14:39
Ole1236-May-04 14:39 
GeneralRe: Custom Columheader Pin
superwinsock6-May-04 18:45
superwinsock6-May-04 18:45 
GeneralRe: Custom Columheader Pin
Ole1237-May-04 12:38
Ole1237-May-04 12:38 
GeneralRe: Custom Columheader Pin
Ole1237-May-04 12:43
Ole1237-May-04 12:43 
GeneralRe: Custom Columheader Pin
superwinsock9-May-04 19:33
superwinsock9-May-04 19:33 
GeneralRe: Custom Columheader Pin
Ole12310-May-04 10:04
Ole12310-May-04 10:04 
GeneralDocking Pin
PaleyX3-May-04 9:59
PaleyX3-May-04 9:59 
Generalaccess Pin
Anonymous3-May-04 9:12
Anonymous3-May-04 9:12 
GeneralRe: access Pin
Dave Kreskowiak3-May-04 9:39
mveDave Kreskowiak3-May-04 9:39 
GeneralRe: access Pin
trg50303-May-04 18:55
trg50303-May-04 18: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.