I don't think that DataGrid supports comboboxes inside it.
I suppose you are using your table in Access Datasheet. You could make a special form consisting of another DataGrid that could be programmatically customized for displaying your combobox data by e.g. double clicking the specified column...
Have you set the CursorLocation Property to 'adUseClient'?
I think a client side cursor for the recordset supports RecordCount.
Let me know about the result.
The datatype should be integer. Because you want to get the Max value yourself. For the first record in your table you can handle the problem like this:
..
rs.Open "Select Max(Count) From Table1" ,cn1
If isnull(rs(0)) then
NewNumber = 1
Else
NewNumber = rs(0)+1
End If
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.