Hi!
In an access 2000 invoice database, I want to have the user write a
credit memo (Norwegian: Kreditnota), or returning invoice. However I'm
not sure how I should arrange the table structure (if I at all need
this table [tblCreditMemo]). Or could I use a text-file starting with
the number, say:1000, and have the program call the text-file and read
the highest number and add 1?
Hope anyone has some thoughts on this one. Thanks! 3 1176 al****@start.no (Geir Baardsen) wrote in
news:9e*************************@posting.google.co m: Hi! In an access 2000 invoice database, I want to have the user write a credit memo (Norwegian: Kreditnota), or returning invoice. However I'm not sure how I should arrange the table structure (if I at all need this table [tblCreditMemo]). Or could I use a text-file starting with the number, say:1000, and have the program call the text-file and read the highest number and add 1?
Hope anyone has some thoughts on this one. Thanks!
If the KreditNota field contains the same colums as your standard
invoice, use the same table. Just add a Yes/No field to the table
to record whether it is the Invoice Or Credit. As to numbering, I'd
simply use a Dmax() function to find the most recently assigned
number and add one. You can even maintain separate sequences for
invoices and Credit notes, You can also easily prefix a code or the
year.
--
Bob Quintal
PA is y I've altered my email address.
A credit memo should be the same as an invoice except that the result
should be negative. I don't believe you need a different table
structure as you want the results to be in the same table.
HTH! al****@start.no (Geir Baardsen) wrote in message news:<9e*************************@posting.google.c om>... Hi! In an access 2000 invoice database, I want to have the user write a credit memo (Norwegian: Kreditnota), or returning invoice. However I'm not sure how I should arrange the table structure (if I at all need this table [tblCreditMemo]). Or could I use a text-file starting with the number, say:1000, and have the program call the text-file and read the highest number and add 1?
Hope anyone has some thoughts on this one. Thanks!
Bob Quintal <rq******@sPAmpatico.ca> wrote in message news:<Xn**********************@66.150.105.49>... al****@start.no (Geir Baardsen) wrote in news:9e*************************@posting.google.co m:
Hi! In an access 2000 invoice database, I want to have the user write a credit memo (Norwegian: Kreditnota), or returning invoice. However I'm not sure how I should arrange the table structure (if I at all need this table [tblCreditMemo]). Or could I use a text-file starting with the number, say:1000, and have the program call the text-file and read the highest number and add 1?
Hope anyone has some thoughts on this one. Thanks! If the KreditNota field contains the same colums as your standard invoice, use the same table. Just add a Yes/No field to the table to record whether it is the Invoice Or Credit. As to numbering, I'd simply use a Dmax() function to find the most recently assigned number and add one. You can even maintain separate sequences for invoices and Credit notes, You can also easily prefix a code or the year.
Thanks for a very clever idea. Why didn't I think of that? I'll just add a
Yes/No field and a text field witch starts at 1000, then I'll let a DMax()
function update the report everytime a creditnota is being written, so
that the numbersequence will not be broken. The IRS doesn't like broken
numbersequences! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Ryan Ternier |
last post by:
I'm having an issue with an SQL insert statement. It's a very simple
statement, and it's causing too much fuss.
strSQL = "INSERT INTO tblFieldLayouts(TypeID, FieldID, OrderID, Hidden)
VALUES("...
|
by: laurenq uantrell |
last post by:
I'm trying to return an integer from the following table that returns
the number of unique cities:
tblEmployees
Name City
John Boston
Frank New York
Jim Omaha
Betty ...
|
by: NuB |
last post by:
The validation controls are giving me a headache. here is what i'm trying to
do and so far what I've tried has not worked.
I need to hide my grid if the page is not valid
how can i accomplish...
|
by: James Ma |
last post by:
Now I am debugging a buggy VB.NET function like following
Function foo()
Try
‘ many loops and codes and nested try catch here!
……
Catch (ex as Exception)
Msgbox ex.message
Finally
…
|
by: Echo |
last post by:
Hi all. Sorry about the crude headline but this problem is really
giving me a headache. See I am currently deloping an app in Visual
Studios 2005 C# Lanuage and the thing is like this: I have a...
|
by: Kiuhnm |
last post by:
How would you implement a static dictionary with macros?
For example, the five lines
PL_FIND(MYDICT, HOUSE)
PL_FIND(MYDICT, AUTO)
PL_FIND(MYDICT, THIS_IS_NOT_IN_THE_DICTIONARY)...
|
by: Krij |
last post by:
Hi!
A button on frmOrders will let user return an order. But...
The following SQL is giving me a headache:
strPutBack = "INSERT INTO tblAmountItems(Amount,MyDate,Returned) " _
& "SELECT...
|
by: manishster |
last post by:
I keep getting the following in my output file , regardless of whether
I convert endian-ness or not . How do i get "01 02 03 04" ....
Mahamannu
output : 04 03 02 01 b0 00 00
|
by: gchq |
last post by:
Hi there
Attempting to populate a dynamic table with data - that in itself is not a problem, but getting group headers IS giving me a headache. Know I've done this before, but can I remember how?...
|
by: plemon |
last post by:
this script was working now ive added to it and its no longer my
friend.
here is the very first one
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
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,...
| |