473,549 Members | 2,639 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Print mailing labels and update date field

I have a project which requires the batch import of customer contact
information, print mailing labels for those customers who have their
date of first letter field in the database set to null, and update the
date of first letter field with the date the mailing labels are
printed.

I already have a query which checks the date of first letter field,
and returns those customers whose date of first letter field is null.
How do I setup to run the mailing labels based on this criteria and
update the date of first letter field in the process?

Thanks

Jun 27 '08 #1
4 2013
Dr Al wrote:
I have a project which requires the batch import of customer contact
information, print mailing labels for those customers who have their
date of first letter field in the database set to null, and update the
date of first letter field with the date the mailing labels are
printed.
A single query can't do that. You could make a Macro to do that (not
resorting to VBA) where it runs the report based on the first query,
then runs an update query based on the first that sets the date.

2 lines of code...easy...

....or you can -=try=- to do it via VBA in a report...just add code to
currentdb.execu te "UpdateQueryNam e" to the close event of the report.
Jun 27 '08 #2
On Apr 18, 8:44*pm, Harry Skelton <skelton.ha...@ gmail.comwrote:
Dr Al wrote:
I have a project which requires the batch import of customer contact
information, print mailing labels for those customers who have their
date of first letter field in the database set to null, and update the
date of first letter field with the date the mailing labels are
printed.

A single query can't do that. *You could make a Macro to do that (not
resorting to VBA) where it runs the report based on the first query,
then runs an update query based on the first that sets the date.

2 lines of code...easy...

...or you can -=try=- to do it via VBA in a report...just add code to
currentdb.execu te "UpdateQueryNam e" to the close event of the report.

Thanks, but could you be a little more specific! You said...easy...,
but I am not that familar with code!
Thanks
Jun 27 '08 #3
Dr Al,

For what it's worth, when I do something like this I open a form based
on the select query and print my labels from there then in the onclose
event of the form I just run an update query to place a date in the
records I just processed.

Rick
Jun 27 '08 #4
On Apr 22, 10:49*am, "Rick A.B." <rick.bre...@mi nneapolis.eduwr ote:
Dr Al,

For what it's worth, when I do something like this I open a form based
on the select query and print my labels from there then in the onclose
event of the form I just run an update query to place a date in the
records I just processed.

Rick
Thanks everyone,

I got it working this morning.... I would not have gotten it done
without your help.

Thanks
Jun 27 '08 #5

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

Similar topics

3
4674
by: Mark V. | last post by:
Here's what I have and I'm stumped. I have a table that has several thousand names and addresses. I only want to send to one address in a household. So what I would like to do is create a new column that runs a macro or whatever it takes to flag records so they are housholded. Some records have a Father and son at the same address, so I would...
3
6301
by: rrh | last post by:
I am trying to update a field in one table with data from another table. The problem I'm running into is I need to base the update on a range of data in the 2nd table. Table 1 has: date field new field table 2 has: key field (autonumber)
2
2026
by: Bobbie | last post by:
I am trying to make mailing labels. The zip/postal codes are 9 digits (ex: 40601-0223) I ran a query and put in the input mask 00000/-9999;;_ and it works but when I make the mailing labels and it pulls in the data the dash is missing (Ex: 406010223). Does anyone know how I can get the dash to follow to the labels? I tried using the...
0
1409
by: Richard Sherratt | last post by:
I'm printing address labels in a membership database. The rules are that if both MailingAddress1 and MailingAddress2 are Null, then use home address, otherwise use mailing address. If address line 1 is null, don't show a blank line. That sounds simple, and a long IIf function in the report's query does the job, but it's getting a bit too long...
2
14171
by: ooooscar | last post by:
I'd like to make an application to print labels. I have to print an image and text, the label size is 10cm x 5 cm. I'm wandering how to do it in c#. My first thought is to make an acrobat "form" with the image and text, but I have to send a date in the label so I need to open the pdf and send the date into a field (variable), then I have to...
2
13493
by: Mikey | last post by:
Sample VB .NET source code to create mailing labels or customized letters using MS Word MailMerge This VB .NET source code will start MS Word and call methods and set properties in MS Word to execute a MailMerge to create mailing labels or customized letters. A label name known to MS Word MailMerge mailing label wizard may be used or a...
1
2504
by: Malcolm Webb | last post by:
I need to produce mailing labels every week for staff, but not always for the same people. I have found a procedure using a filter form which allows individual names to be selected from a list box which are then applied to a report for printing. I have an Employees Table filtered via a query to only show current staff. My FilterForm is...
7
2007
by: Dave | last post by:
Hi all I have a student database where I would like to be able to print just one mailing label, for the student whose record I am currently accessing on the form. I want to be able to click on the command button and have the label print out on my labelwriter. I have done some searching on the web, and found how to print single labels...
1
2476
by: mikeyatsony | last post by:
Hi all... Is there a web for my ASP Web application tied to a SQL Server Express DB to print labels? I need a way to have reports printed from the user's browser. They wish to print labels for a mailing. Any thoughts would be great.
0
210
by: Dr Al | last post by:
Sorry if this shows up twice, I clicked on post but could not find the post....! I have a database which requires the batch import of customer contact information, print mailing labels for those customers whose date of first letter field is null, and update the date of first letter field when the mailing labels are printed, I already...
0
7532
marktang
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7730
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7975
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7492
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6059
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5381
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3491
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1957
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 we have to send another system
1
1069
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.