473,396 Members | 1,785 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,396 software developers and data experts.

creating a letter which has name and project title to be filled automatically.

jinalpatel
Hello,

I am working on an existing database. We have four letters to be included in the database functionality.
For example

Dear Mr/Ms "XXXXX(Name of Person)"

Congratulations on the successful completion of your project "XXXXX(ProjectName).....It was pleasure working with you and and the "XXXXXX(SupervisorName)....etc


Sincerely,

John Doe
Manager

I created a report and add this letter in a textbox.(is it right way to do it?)
How do I insert the name of the person, Projectname and supervisor name automatically?

Please help me I have come across such thing for the first time.
Mar 18 '09 #1
6 1564
Delerna
1,134 Expert 1GB
There are many many many ways to achieve what you describe.
Many solutions are based around a form where you select the record to be printed.
There is then a Query that is filtered by the selections on your form.
Finally the report that prints is based off the query so the report can obtain the info you mention (Name of person,Project Name and supervisor name) into bound controls such as text boxes.

There is a button on the form that prints that report from the onclick event.

I have made some very general statements that describe the process.
You will need to provide more detail into what you are using/doing.
Mar 18 '09 #2
Delerna
1,134 Expert 1GB
Another possibility is if the info you require is on an open form when the report prints, you can pull the information into the report straight off the form.

All methods require you to provide some way for the user to select a particular record for printing in a report and also providing some way for the report to access that selected record
Mar 18 '09 #3
I think I can use the second answer. I have a bound form which has three textboxes (Name of person,Project Name and supervisor name) .
And I have a command button which opens a report that has all the writing with Name of person,Project Name and supervisor name .
How do I actually supply that textbox values to that report? I put a textbox instead of "XXXXX" in the letter. But that doen't work. It shows # error instead of showing actual letter.
Mar 19 '09 #4
I created a label and put all the letter writing into it. Instead of XXXXX, I put a textbox which has controlsource = [forms]![frmMain]![txtProjectName].

Now it shows the exact record from the main form but it is showing 11 same records. I mean 11 letters with same project name, etc..

One fact is. my main table (to which my report and main form is bound) has 11 records in it.

How to fix it?
Thanks!!
Mar 19 '09 #5
ChipR
1,287 Expert 1GB
You want your report not to be bound to a table and just show the letter for the record on the form when you click the command button right?
Mar 19 '09 #6
OKAY!!
my bad!! It was a dumb mistake. that report was bound to that table. that is why it was showing 11 records ..and all same..
weired but true..
!!
Thank you all for helping out.
Mar 19 '09 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

13
by: jenny | last post by:
Hi, I am trying to find a VB way that would create a folder on all existing drives - the folder name would be the same on each drive. ie c:\backup, d:\backup, etc. But the folders would only be...
1
by: Don Stefani | last post by:
Hello, I have a form that I want to submit "onchange", OK I've got that working, but when the form submits, I want to pass along a value to a CGI script, as if that value was in a hidden form...
9
by: Patrick.O.Ige | last post by:
I have a code below and its a PIE & BAR CHART. The values now are all static but I want to be able to pull the values from a database. Can you guys give me some ideas to do this? Thanks ...
0
by: Andrew Westgarth | last post by:
Hi all, i'm struggling with a page idea I have. I need to write a page with an A to Z list of available schools in the area. I only want to display the letters in the A to Z which have school...
6
by: QuenHo | last post by:
Hi All, I've build a winform application with vb.net which accepts command-line parameters. If I tell windows to open certain files with this application all works fine, but windows does NOT...
4
by: tshad | last post by:
I am trying to set up an Image authorization where you type in the value that is in a picture to log on to our site. I found a program that is supposed to do it, but it doesn't seem to work. ...
0
by: dradhakr | last post by:
I need to put 5 question only,that's randomly in flash,how can i write script in flash <?xml version="1.0"?> <!DOCTYPE quiz > <quiz> <title>The Quiz</title> <items> <item>...
1
by: sathyan8294 | last post by:
i want to display the name starting with any letter(A-Z,a-z) in textbox from sqldatabase through datagrid using vb.net windows application. for example, values are in datagrid like companyid ...
10
by: =?Utf-8?B?SmFtZXMgV29uZw==?= | last post by:
Hi everybody, I'm trying to use the new VB 2008 right now and I want to know how to preset the company name and copyright informtion in Assembly Information. In my current VB 2005, company name...
0
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...
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
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
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
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.