![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm trying to select from an Access database in VB. There are 5 records in the table but this select will only return 1. I have no idea why. If I add 'DISTINCT' it works correctly. Dim rs As Recordset sSQL = "select name from name_table" Set rs = oDB.OpenRecordset(sSQL) Debug.Print rs.RecordCount |
#3
| |||
| |||
|
|
I'm trying to select from an Access database in VB. There are 5 records in the table but this select will only return 1. I have no idea why. If I add 'DISTINCT' it works correctly. Dim rs As Recordset sSQL = "select name from name_table" Set rs = oDB.OpenRecordset(sSQL) Debug.Print rs.RecordCount |
![]() |
| Thread Tools | |
| Display Modes | |
| |