PC Review


Reply
Thread Tools Rate Thread

adding/checking records via vbcode

 
 
Craig
Guest
Posts: n/a
 
      24th Mar 2007
Hi again,

I hope this is a good way of doing what i want to achieve...

I have a table thats going to record all new invoice amounts and payments...
it looks like this..

table.ID
table.CustomerID
table.invoiceNumber
table.recordDate
table.invoiceAmount (defaulted to 0 unless changed)
table.customerPayment (defaulted to 0 unless changed)
table.paymentType


The idea is that when producing an invoice, it records the invoice in this
table and later when someone pays (even if its not the correct amount, i can
record it here)..

I have a button on the invoice form which normally saves the record.. I
would like to make it check to see if there is an entry for that invoice
number in the table above and if needed either modify or add the new record.

The idea is that when creating an invoice entry in this table only certain
fields are used and when recording payments (which would be in a seperate
record) the other fields would be used with some being related to both. I
dont need to directly link the payment with the invoice number as the
payment might be for more (or less) than the current balance.

so the record entry would look something like this...

ID CustomerID invoiceNumber recordDate invoiceAmount
custmerPayment paymentType
1 1 1 10/3/2007 100.00
0
2 2 2 11/3/2007 50.00
0
3 1 3 12/3/2007 75.00
0
4 1 13/3/2007 0
100.00 Cash
5 2 13/3/2007 0
50.00 Cheque

....and so on...

Hopefully this way i can get a running statement for any customer between
and dates...

I havent looked at the vb side of access before (even though i have played
with vb a lot over the years). How would I get access to check then add (if
needed) with vbcode?

thanks

 
Reply With Quote
 
 
 
 
storrboy
Guest
Posts: n/a
 
      24th Mar 2007

I personally would separate payments and invoices into two tables and
have them connected by the invoice number and require the customer to
refernce the invoice in thier payment. In my limited experience, few
people pay more than the invoice, and spearating them should allow you
to keep a balance for each invoice, and each customer by summing the
invoice amounts and payment amounts.

 
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
checking for records need a better way shaun franken Microsoft Access Forms 2 30th Sep 2009 09:50 PM
vbcode not updating Fred Microsoft Access Forms 2 9th May 2005 05:48 PM
Checking PTR records W Dean Microsoft Windows 2000 DNS 8 21st Jan 2005 07:29 PM
Need Help with checking records Charles Microsoft Excel Programming 1 29th Jan 2004 07:48 AM
Help - where to put VBCode on a network Mervyn Thomas Microsoft Excel Programming 1 28th Jan 2004 11:31 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:29 AM.