Integer equivalent in Access

StewartBW 1,805 Reputation points
2024-05-26T01:35:55.2433333+00:00

Hello

I work with Access mdb with OleDbRader (Access Database Engine) in vb.net and need to set the data type to Integer (NOT Long Integer) so:

Dim cmd As New OleDbCommand("ALTER TABLE Blah ALTER Column colm ???", connection)
cmd.ExecuteNonQuery

Please advise what to write instead of ??? to set to Int32 , shows as Integer in Access.

Thanks

Microsoft 365 and Office Access Development
Developer technologies VB
Developer technologies C#
{count} votes

Accepted answer
  1. Viorel 122.5K Reputation points
    2024-05-26T15:06:40.42+00:00

    Try this command: alter table Blah alter column colm smallint.

    Make sure that the rows do not contain large numbers.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.