Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB 5.0 DBCombo MatchedWithList error

Status
Not open for further replies.

ag

Programmer
Nov 5, 1998
31
0
0
GB
Has anyone come acorss a problem with the DBCombo.MatchedWithList property?<br>
<br>
It appears that irrespective of a user's selection from the list, that this property is always 'false'. Everything else works just fine. I am using VB 5, SP3.<br>
<br>
TIA<br>
<br>
ANdrew<br>

 
I recently used the MatchedWithList property for the first time and I had a problem with it always returning false until...<br>
After checking the DBCombo.MatchedWithList property I programmagramtically set the dBCombo.Text property. An example follows:<br>
<br>
If DBCombo.MatchedWithList = False Then<br>
MsgBox ("Select from list")<br>
TestData.RecordSource = "SELECT [TestTable].* FROM [TestTable]"<br>
TestData.Refresh<br>
TestData.Recordset.MoveFirst<br>
DBCombo.Text = TableData.Recordset![TestName]<br>
Exit Sub<br>
End If<br>
<br>
Does this help?
 
Thanks for the reply......that's essentially the solution I arrived at although slightly differently.....if you set <br>
DBCombo.BoundText=DBCombo.BoundText (!) then it also appears to do the job....seems the DBCombo knows about the value but isn't passing it through somehow.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top