I got "6: Overflow" message when I run a code:
SQL = "SELECT * FROM [tblPatients_All] ORDER BY PtID, SOC, DCDate;"
Set rstPt_Init = db.OpenRecordset(SQL, dbOpenSnapshot)
The tblPatients_All has 34400 records.
I checked the data for each field and didn't find any data is out of field range.
I have another similar two tables which have same fields and datatypes. When I run the same code I didn't get any problem. The number of records are 2200 and 32200. Indeed, I just merge the data of these two tables into tblPatients_All.
I can't figure out why this happened?
Please help! Any idea is greatly appreciated!
George
p.s. the data is from a text file. I try to import the text file into an SQL servser database. it stopped. But if the number of records is less than 30000. It was fine. Is there a limit for the number of records?
SQL = "SELECT * FROM [tblPatients_All] ORDER BY PtID, SOC, DCDate;"
Set rstPt_Init = db.OpenRecordset(SQL, dbOpenSnapshot)
The tblPatients_All has 34400 records.
I checked the data for each field and didn't find any data is out of field range.
I have another similar two tables which have same fields and datatypes. When I run the same code I didn't get any problem. The number of records are 2200 and 32200. Indeed, I just merge the data of these two tables into tblPatients_All.
I can't figure out why this happened?
Please help! Any idea is greatly appreciated!
George
p.s. the data is from a text file. I try to import the text file into an SQL servser database. it stopped. But if the number of records is less than 30000. It was fine. Is there a limit for the number of records?