I have some fields in a SQL table which are type decimal(x,y). In the VBA how do I represent these in the ADO parameters for a stored procedure argument? For example, a varchar would be declared using adVarChar:
Set prm = cmd.CreateParameter("@ColumnX", adVarChar, adParamInput, 50)
Have a look at this page:
The two data types you may be interested in are
adDecimalandadNumeric. The following post describes the difference between the two:Here is an example: http://www.access-programmers.co.uk/forums/showthread.php?t=149631