Hi all,
Can anyone see whats wrong with this??????
It's my first recordset attempt and i'm ready to find a long piece of rope and a high beam already.
where the text is red I keep getting : runtime error '13': type mismatch
Cheers,
Spinkung.
Can anyone see whats wrong with this??????
It's my first recordset attempt and i'm ready to find a long piece of rope and a high beam already.
Code:
Private Sub Form_Load()
Dim dbMyDB As Database
Set dbMyDB = CurrentDb
Dim rsMyRS As Recordset
[COLOR="Red"]Set rsMyRS = dbMyDB.openRecordSet("QRY_StockEntry")[/COLOR]
If Not rsMyRS.EOF Then rsMyRS.MoveFirst
Do While Not rsMyRS.EOF
lstRecords.AddItem rsMyRS!CNTR
lstRecords.ItemData(lstRecords.ListIndex) = rsMyRS!StockID
rsMyRS.MoveNext
Loop
where the text is red I keep getting : runtime error '13': type mismatch
Cheers,
Spinkung.
