Michael Kizer
Sep 14th, 2000, 06:39 PM
Here's a weird one that was driving me crazy today...
I have a dbCombo bound to a data control (Data1) for a table that is just basically just an ID & Desc. The dbCombo.boundcolumn is set to the ID and the dbCombo.listfield is set to the Desc.
In the Change event I do this:
Data2.RecordSource = "select * from DifferentTable where ID_Field=" & dbCombo.BoundText
Data2.Refresh
Now, this works fine when I run the app from the IDE, but if I put a break point on the Data2.RecordSource line, the value of BoundText contains the value of the Desc field (which of course causes the line to fail). Strange...
I am running VB6 SP4
I have a dbCombo bound to a data control (Data1) for a table that is just basically just an ID & Desc. The dbCombo.boundcolumn is set to the ID and the dbCombo.listfield is set to the Desc.
In the Change event I do this:
Data2.RecordSource = "select * from DifferentTable where ID_Field=" & dbCombo.BoundText
Data2.Refresh
Now, this works fine when I run the app from the IDE, but if I put a break point on the Data2.RecordSource line, the value of BoundText contains the value of the Desc field (which of course causes the line to fail). Strange...
I am running VB6 SP4