PC Review


Reply
Thread Tools Rate Thread

beginner VBA to create 2 columns

 
 
daisy
Guest
Posts: n/a
 
      24th Mar 2010
Hi, I haven't written in vba in Access before so I'm not sure what to write
or what my best approach is to solve my dilemma

I am starting a db it'll have a main table with several columns of data.

Each month I will have data to import into the larger table. The problem is
that I need to be able to create 2 fields that compare from other fields. I
know it's not best to have calculated fields in your tables but for our
purposes we need it.

You have a dataset where everything is collected (currently all in Excel and
this is manually done)
The data has several fields but here is an example of an abbreviated version:
Data

Booking Qtr Mbr ID Member Event TotalPd

2008-12 1111111 ABC Initial
$500
2009-5 1111112 BCD Initial
$250

New Data coming in

Booking Qtr Mbr ID Member Event TotalPd

2010-1 1111111 ABC Renewal $1000
2011-1 1111111 ABC Renewal 2 $1500

I want to be able to append the data but create a field that compares the
Initial Event TotalPd to the Renewal (Delta) and then another column that
compares the different renewal events to each other - for example Renewal and
Renewal 2

The commonality between them is their name & ID

Thank you in advance!!!!
 
Reply With Quote
 
 
 
 
daisy
Guest
Posts: n/a
 
      25th Mar 2010
I agree it's not ideal to do this - if it ends up being okay not to add the
columns how in the query would I show the comparison for any individual mbr

The Event distinguishes the Initial vs Other?

Thanks again
--
Thank you in advance!!!!


"daisy" wrote:

> Hi, I haven't written in vba in Access before so I'm not sure what to write
> or what my best approach is to solve my dilemma
>
> I am starting a db it'll have a main table with several columns of data.
>
> Each month I will have data to import into the larger table. The problem is
> that I need to be able to create 2 fields that compare from other fields. I
> know it's not best to have calculated fields in your tables but for our
> purposes we need it.
>
> You have a dataset where everything is collected (currently all in Excel and
> this is manually done)
> The data has several fields but here is an example of an abbreviated version:
> Data
>
> Booking Qtr Mbr ID Member Event TotalPd
>
> 2008-12 1111111 ABC Initial
> $500
> 2009-5 1111112 BCD Initial
> $250
>
> New Data coming in
>
> Booking Qtr Mbr ID Member Event TotalPd
>
> 2010-1 1111111 ABC Renewal $1000
> 2011-1 1111111 ABC Renewal 2 $1500
>
> I want to be able to append the data but create a field that compares the
> Initial Event TotalPd to the Renewal (Delta) and then another column that
> compares the different renewal events to each other - for example Renewal and
> Renewal 2
>
> The commonality between them is their name & ID
>
> Thank you in advance!!!!

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
create a macro to delete columns and then border remaining columns =?Utf-8?B?SmFuZTc3Nw==?= Microsoft Excel Programming 1 18th Jul 2007 12:08 AM
How do I create columns based on other columns using SQL in Access? shauny@shauny.com Microsoft Access 1 15th Sep 2006 10:37 AM
asp.net - beginner - why can't my class create controls on my page? Ranginald Microsoft ASP .NET 1 16th May 2006 04:58 AM
[beginner] create macro to insert symbol Artavar Microsoft Excel Programming 8 11th Jul 2005 01:43 PM
Create stacked columns chart but with 2 columns for each x axis? =?Utf-8?B?UFNN?= Microsoft Excel Charting 2 7th May 2005 03:56 PM


Features
 

Advertising
 

Newsgroups
 


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