473,465 Members | 4,818 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Please get my customer receipt working!

I'm trying to set up a simple relational Access database to look after
customer orders for our small bookselling operation. I'm a beginner at
this, teaching myself via Help files and the manual 'Access Inside
Out'.

I've set up linked tables Customers, Orders and OrderDetails and these
seem to be working OK, accepting new data via forms and subforms. So
now I need to print out a receipt detailing the order for the
customer. I've assumed this should be a report and have set this up
based on the tables. The customer and order details are going into the
report OK, but it's including these details for all orders. Should I
have based the report on a query - in which case what expression
should be used (I assume in the OrderID field) to restrict to the
current (usually the last) order. Or is it better to fire a macro from
the order form to OpenReport but again what expression will restrict
the report to the current order. I've had a go at both these ways but
can't get it right. Please tell me there's a really simple way to
produce a receipt!

Other immediate problems are:
How do I vertically close up an empty line in the customer address
when there is no data in Address2 field?
Plus, any suggestions on the best way to produce customer shipping
labels? Would a continuous roll printer be best (if there is such a
thing)?

All help most gratefully received - I'm pulling my hair out!
SusieS
Nov 12 '05 #1
2 2268
Susie,

It sounds like you need to limit your recordset to the current record on your
Print Command Button. When you go into the code side of your form, look at the
link criteria, which will be stLinkCriteria, you'll need to add a Dim statement
of Dim stWhere as String and then use the Record ID to limit your records to
only the current one.

Dim stWhere as String

stWhere = "FieldName=" & Me!FieldName

Then where you see the stLinkCriteria, place some comma's and you'll see the
Where clause, place your stWhere there and see if that eliminates your problem
with all the records?

HTH

Michael
Nov 12 '05 #2
As far as Labels, Access has a great wizard for creating labels, that uses
standard Avery Label formats. Look at your report wizard Susie.
Nov 12 '05 #3

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

Similar topics

2
by: Greg Sedeo | last post by:
My code works fine without the read receipt request.. with it the message does not send, does not give and error.. <!--METADATA TYPE="typelib" UUID="CD000000-8B95-11D1-82DB-00C04FB1625D"...
2
by: SusieS | last post by:
I'm trying to set up a simple relational Access database to look after customer orders for our small bookselling operation. I'm a beginner at this, teaching myself via Help files and the manual...
1
by: Esteban Felipe | last post by:
Hi, thanks for reading. I hope to find some help here before I commit suicide because this is driving me crazy. Please excuse me if this looks like a long post, but I hope that a complete...
5
by: Chris Thunell | last post by:
I'm using the system.web.mail in vb.net to send emails out in a vb.net application. The sending of emails works great. Is there a way to have it send me back a delivery receipt or a read receipt?...
0
by: Kostadin Kostov | last post by:
Hi! I'm developing component for sending emails and want to have the ability to request delivery receipt when sending an email. I use the "Return-Receipt-To" header:...
0
by: Kermitus | last post by:
Hey I was hoping for a little help. I am a Domain reseller for Aplus.net. The problem is they really don't provide an API to automate Domain searches, registering etc... I see much potential in...
4
by: kajal rai | last post by:
hi, i'm working on a dues module of a university intranet software. i've made a form to submit amout to be paid ,amout outstanding .onsubmit of the form i want to generate a receipt form with a...
7
by: ARC | last post by:
Hello all, What's the proper paper size setting if you want to do a receipt printer report, that's a continuous form? I don't really see an option for a continuous paper size. Thanks! Andy
5
by: wassimdaccache | last post by:
Dear Sirs; I'm trying to write SQL statement and it is not executing what I need. tables are: customers(customerID, customerName) ...
4
smithj14
by: smithj14 | last post by:
I am working on an access app that will generate receipts for clients who pay our company. I am stuck on two things. First: I want to increment a receipt number automatically without using...
0
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...
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...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.