473,463 Members | 1,496 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Mystery number 9360 in report

Hello all,

It's my first database, and I have a query that shows me the quantity,
material, length, width and thicknesses of parts, and I'm using these
figures to do some arithmetic on a report to show me how many board
feet of lumber to buy (expression is as follows):

=([Length] * [Width] * [Quantity]/144) * (Val([Thickness])/4)

If you're wondering what the Val statement is for, it's to grab the
first number of a fraction that's recorded as a text field for rough
lumber sizes like 4/4, 8/4, 12/4, et cetera, and I use the first number
of that fraction as a multiplier. This may not be the best way to get
the number, but it's what I've come up with.

The data in the table looks right, and the query shows me the right
data as well. The problem seems to be in the report.

Everything about the report's expression gives me the answer I expect,
except the width field. For some reason, the expression always uses a
width value of 9360, regardless of the width data in my table. I have
no idea where this number comes from. It's not a value in any of my
tables, and is not a sum of any values either. As a test, I copied the
database, blew away all the data in the copy's table and the report
still came back with a width value of 9360. Even changing the
expression to =[Width] gives me 9360, but just Width (no equal sign or
brackets) yields the correct number.

I am very puzzled. If anyone can shed some light on this, I would be
grateful. Let me know if I omitted a crucial piece of information.

Jared Emery

Jan 11 '06 #1
4 1511
I don't know if this is the cause of the problem, but Width is an Access
reserved word. I'd try changing the name of that field.

--
Randy Harris
tech at promail dot com
I'm pretty sure I know everything that I can remember.

Jan 11 '06 #2
On 11 Jan 2006 12:38:41 -0800, JaredEmery wrote:
Hello all,

It's my first database, and I have a query that shows me the quantity,
material, length, width and thicknesses of parts, and I'm using these
figures to do some arithmetic on a report to show me how many board
feet of lumber to buy (expression is as follows):

=([Length] * [Width] * [Quantity]/144) * (Val([Thickness])/4)

If you're wondering what the Val statement is for, it's to grab the
first number of a fraction that's recorded as a text field for rough
lumber sizes like 4/4, 8/4, 12/4, et cetera, and I use the first number
of that fraction as a multiplier. This may not be the best way to get
the number, but it's what I've come up with.

The data in the table looks right, and the query shows me the right
data as well. The problem seems to be in the report.

Everything about the report's expression gives me the answer I expect,
except the width field. For some reason, the expression always uses a
width value of 9360, regardless of the width data in my table. I have
no idea where this number comes from. It's not a value in any of my
tables, and is not a sum of any values either. As a test, I copied the
database, blew away all the data in the copy's table and the report
still came back with a width value of 9360. Even changing the
expression to =[Width] gives me 9360, but just Width (no equal sign or
brackets) yields the correct number.

I am very puzzled. If anyone can shed some light on this, I would be
grateful. Let me know if I omitted a crucial piece of information.

Jared Emery


You have used a reserved word "Width" and you are getting the width
(in Twips) of an Access object.

Width is a reserved Access/VBA/Jet word and should not be used as a
field name.
For additional reserved words, see the Microsoft KnowledgeBase article
for your version of Access:

109312 'Reserved Words in Microsoft Access' for Access 97
209187 'ACC2000: Reserved Words in Microsoft Access'
286335 'ACC2002: Reserved Words in Microsoft Access'
321266 'ACC2002: Microsoft Jet 4.0 Reserved Words'
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
Jan 11 '06 #3
Holy secret passwords Batman, there's no WAY I would've figured that
out on my own. Thank you kindly. Now I can attempt to put the hair back
on my scalp.

Jared

Jan 11 '06 #4

I see your main problem has been answered. On the 12/4, 8/4, 4/4 entries
have a look at using Eval.

so your equation becomes
=([Length] * [Width] * [Quantity]/144) * Eval([Thickness])

Except of course you'll be changing the Width keyword.
--

Terry Kreft
"JaredEmery" <ja********@westportshipyard.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
Hello all,

It's my first database, and I have a query that shows me the quantity,
material, length, width and thicknesses of parts, and I'm using these
figures to do some arithmetic on a report to show me how many board
feet of lumber to buy (expression is as follows):

=([Length] * [Width] * [Quantity]/144) * (Val([Thickness])/4)

If you're wondering what the Val statement is for, it's to grab the
first number of a fraction that's recorded as a text field for rough
lumber sizes like 4/4, 8/4, 12/4, et cetera, and I use the first number
of that fraction as a multiplier. This may not be the best way to get
the number, but it's what I've come up with. <SNIP> Jared Emery

Jan 13 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Red | last post by:
In netscape bookmark files, there are lots of lines like this: <DT><A HREF="http://www.commondreams.org/" ADD_DATE="1091500674" LAST_CHARSET="ISO-8859-1" ID="rdf:#$uiYyb3">Common Dreams</A> I...
3
by: CSDunn | last post by:
Hello, I have a situation with MS Access 2000 in which I need to display report data in spreadsheet orientation (much like a datasheet view for a form). If you think of the report in terms of what...
1
by: Sara Montgomery | last post by:
I have a database I'm working with which has tables and reports. The controls in the reports are bound to data, but I'm at a loss to explain where the data is coming from. I have gone so far as to...
115
by: Mark Shelor | last post by:
I've encountered a troublesome inconsistency in the C-language Perl extension I've written for CPAN (Digest::SHA). The problem involves the use of a static array within a performance-critical...
3
by: Fin | last post by:
Index properties in C++ class libraries (.NET) apper as set_ and get_ methods when used in C# To test this out, I changed the example from section "13.2 Indexed Properties" in MSDN, and placed the...
14
by: jojoba | last post by:
Hi, I hope this post is ok for this group. Here's my deal: I have two computers on my LAN at home. One desktop. One laptop. Both computers are wireless enabled (and wired enabled too). I...
0
by: Scott | last post by:
I need to have a field to generate the report number with the following format:- The first part consists of four digits for each year. It could be obtained from the date field entered manually....
7
by: itm | last post by:
I have a mail out to send to a group of owners with multiple accounts. I want to limit the number of accounts that print on the first page to 20. I want remaining accounts to print on a second...
3
by: muddasirmunir | last post by:
I am using vb6 and crystal report 10 for making reports. Now i am making a report , the report works fine just i want that the page number of the report start from the number which i give him. ...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.