Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 08-23-2004, 02:17 PM   #1 (permalink)
creed
Registered User
 
Join Date: Aug 2004
Posts: 23
creed is on a distinguished road
Generating temporary tables in Access

Is there a way to reference data that has is in another row.

For example:

Round(([NetSales]-[LastYearNetSales])/[NetSales]*100,0) AS NetSalesIncrease

Here i want to reference the data in this years row(NetSales) and also the data
in field LastYearNetSales in the previous year's row. I first though of a where
statement, but since it's in a select statement, it didnt like it. Anyone have
any thoughs?

Also is there a way to have only certain field show up, while still havign the information avialble for access to do it's work in the background calculating the math operations like what i've mentioned above?
creed is offline   Reply With Quote
Reply

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Issues with Access creed Everything SQL ( MySQL, MSSQL, DB2, Postgre, Oracle, etc...) 7 08-23-2004 09:55 AM
MySQL vs MS Access Epsilon PHP 5 05-24-2004 02:28 PM
Access denied for user: '@192.168.0.71' (Using password: NO) infinite_root PHP 11 04-28-2004 05:30 PM
can't access bios sde Windows 4 08-10-2003 08:41 PM


All times are GMT -8. The time now is 02:09 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting