Integer equivalent in Access

StewartBW 1,905 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#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
{count} votes

Answer accepted by question author
  1. Viorel 125.7K 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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.