M
Manuel
I have a combo box on a form which finds records that are stored in a table.
The look up value used by the combo box is a number stored as a DOUBLE in the
table. The number can be between 6 and 10 numeric characters in length. The
table contains about 75K records.
I’ve used the client\server model where each user has a front end copy of
the database on their C:\ drive which is linked to tables in a backend
database located on the company’s network.
The problem is sometimes users report that the record they type into the
combo box is not found. However, the record does exist in the table.
The ROW SOURCE for the combo box is as follows:
SELECT tbl_ForeData.LnNum FROM tbl_ForeData;
In the After Update event for the combo box control I have the following code:
Private Sub cboLnNum_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[LnNum] = " & Str(Nz(Me![cboLnNum], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
' Other Code…
End sub
Thus far this issue has only been reported for numbers starting with 64
(e.g. 6412345), although I’m not sure why that would be the case.
Has anyone come across this particular issue; it’s a strange one. Your
assistance is greatly appreciated.
Thanks,
Manuel
The look up value used by the combo box is a number stored as a DOUBLE in the
table. The number can be between 6 and 10 numeric characters in length. The
table contains about 75K records.
I’ve used the client\server model where each user has a front end copy of
the database on their C:\ drive which is linked to tables in a backend
database located on the company’s network.
The problem is sometimes users report that the record they type into the
combo box is not found. However, the record does exist in the table.
The ROW SOURCE for the combo box is as follows:
SELECT tbl_ForeData.LnNum FROM tbl_ForeData;
In the After Update event for the combo box control I have the following code:
Private Sub cboLnNum_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[LnNum] = " & Str(Nz(Me![cboLnNum], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
' Other Code…
End sub
Thus far this issue has only been reported for numbers starting with 64
(e.g. 6412345), although I’m not sure why that would be the case.
Has anyone come across this particular issue; it’s a strange one. Your
assistance is greatly appreciated.
Thanks,
Manuel