Background
Frontend MS Access 2010 w/ VBA; Backend MS SQL Server 2008
Just learning SQL
My Problem
I have a SQL table with a field named QTY and it is defined as numeric(18,0). It is being read into a field that is defined as DIM gblQTY as Long.
When a table entry that has a 0 value is read I get the following error: runtime error "6" Overflow.
Thanks in advanced.
Frontend MS Access 2010 w/ VBA; Backend MS SQL Server 2008
Just learning SQL
My Problem
I have a SQL table with a field named QTY and it is defined as numeric(18,0). It is being read into a field that is defined as DIM gblQTY as Long.
Code:
gblQTY = Nz(DLookup("QTY", "dbo_part Shortages", "[key] = '" & gblKey & "'"))
Thanks in advanced.
Comment