473,395 Members | 1,527 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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 2265
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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...
0
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
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.