Cannot Link to SQL Server Table that contains the Float Data Type (1 Viewer)

ions

Access User
Local time
Today, 07:31
Joined
May 23, 2004
Messages
816
Hello Access World,

I am storing Lat / Long from GoogleMaps API in SQL Server. It is recommended to use the Float Datatype to store Lat / Long, however, when I use Float MS Access presents me with the following error when I open the Linked Table.

1727348704960.png


When I store Lat / Long as Decimal(9,6) access linking works well.

I can accept the extra storage for the Decimal datatype but I wanted to understand if this is the best approach to resolve this issue.

Thank you.
 
maybe use Double datatype.
 
Hello Access World,

I am storing Lat / Long from GoogleMaps API in SQL Server. It is recommended to use the Float Datatype to store Lat / Long, however, when I use Float MS Access presents me with the following error when I open the Linked Table.

View attachment 116234

When I store Lat / Long as Decimal(9,6) access linking works well.

I can accept the extra storage for the Decimal datatype but I wanted to understand if this is the best approach to resolve this issue.

Thank you.
Sometimes, what just works is the "best" approach. At least until something better comes along.
 
OK, I'll stick with Decimal(9,6).

Thank you everyone.
 

Users who are viewing this thread

Back
Top Bottom