?
Solved

Need to alter a column in ACCESS 2003 in code to Double with two decimals

Posted on 2008-10-15
6
Medium Priority
?
312 Views
Last Modified: 2013-11-25
I have a talbe that is created in code.  It is double to hold percent.  But it stands at Auto for decimals - how to I tell it I want double with only two decimals points?

ALTER TABLE BudgetSales ALTER COLUMN Comp Double ????

This is reall urgent as I am in a crunch to get this out tonight!
0
Comment
Question by:ssmith94015
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 6

Expert Comment

by:thebradnetwork
ID: 22727312
0
 

Author Comment

by:ssmith94015
ID: 22727386
Thank you, but not really.  The query that creates the table is written in VBA, not a query in the query grid so I need to make the alteration in VBA.
0
 
LVL 6

Accepted Solution

by:
thebradnetwork earned 2000 total points
ID: 22727401
0
Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

 
LVL 18

Expert Comment

by:jmoss111
ID: 22729030
The decimal set to 2 doesn't actually change the value of the column, it only changes whats displayed.
0
 

Author Comment

by:ssmith94015
ID: 22729302
Sorry I took so long to get back.  Someone in the other building had a "problem" that needed to be addressed.  In otherwords - upper management wanted babysitting.

thebrednetwork, I checked the link out and that is exactly what I was looking for.  I created a procedure to call this and when it returns to the next command, the table is how I want it.  Thank you.

thank you also jmoss111 for your comment.
0
 

Author Closing Comment

by:ssmith94015
ID: 31506579
Again, thank you.  I am getting very tired and this really saved me.  It is after 3:00 am here and I am finally getting out.
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question