Hi Zeb,
You can not set the field in your table to auto increment, it will only accept integers type like 1,2,3,4 etc. The way around this is to do the following -
''Open your recordset.... SELECT * FROM etc...
Dim xCount As Integer, strRec As String
xCount = rsRecordset.Recordcount
xCount = xCount + 1
strRec = xCount & "ELE"
Now, when you add a new record to your database, use strRec as the field id.
AndreRet
Senior Poster
3,922 posts since Jan 2008
Reputation Points: 334
Solved Threads: 350