A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Link table field format puzzle



 
 
Thread Tools Display Modes
  #1  
Old June 4th, 2010, 09:08 PM posted to microsoft.public.access
Han
external usenet poster
 
Posts: 13
Default Link table field format puzzle

I have one issue that doesn't make sense. Maybe some expert could help.

I have one table in MS SQL (2005), there are two fields.

GrossCost Numeric(15,2)
NetCost Numeric(15,2)

When I did an ODBC link table inside MS Access XP, the format of the two
fields are different. For example, GrossCost will show 16.00 and NetCost will
show 16 I open the link table in design view and find out the GrossCost's
[format] property are set to 'Fixed' while the NetCost's [format] property
are blank. Why Access treat the two fields differently if they have exact the
same format on SQL side? Anywhere I can setup on the MS SQL side to affect
the [format] property on Access side?

Thanks for any insights!
Ads
  #2  
Old June 5th, 2010, 10:28 PM posted to microsoft.public.access
Tom van Stiphout[_2_]
external usenet poster
 
Posts: 1,653
Default Link table field format puzzle

On Fri, 4 Jun 2010 13:08:00 -0700, Han
wrote:

No you can't. Numeric is a data type that is poorly supported in
Access. It knows about real and double much better. Do you have the
option of changing to one of those?
When you attach a table Access may inspect the first couple of rows to
see what format to use. Depending on what it sees it may set the
format property differently.
However not all is lost. When you use this data in a form or report
you are free to set the format any way you want.

-Tom.
Microsoft Access MVP


I have one issue that doesn't make sense. Maybe some expert could help.

I have one table in MS SQL (2005), there are two fields.

GrossCost Numeric(15,2)
NetCost Numeric(15,2)

When I did an ODBC link table inside MS Access XP, the format of the two
fields are different. For example, GrossCost will show 16.00 and NetCost will
show 16 I open the link table in design view and find out the GrossCost's
[format] property are set to 'Fixed' while the NetCost's [format] property
are blank. Why Access treat the two fields differently if they have exact the
same format on SQL side? Anywhere I can setup on the MS SQL side to affect
the [format] property on Access side?

Thanks for any insights!

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:20 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright 2004-2018 OfficeFrustration.
The comments are property of their posters.