Integer equivalent in Access

StewartBW 705 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

C#
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.
10,527 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,637 questions
Access Development
Access Development
Access: A family of Microsoft relational database management systems designed for ease of use.Development: The process of researching, productizing, and refining new or existing technologies.
846 questions
{count} votes

Accepted answer
  1. Viorel 114K 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