473,396 Members | 1,923 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.

Automate generation and distribution of forms

Hi,

I have an Access 97 database where the users loads the data (from
multiple sources) and generates forms (that looks like reports) at a
click of the button and the user saves the form as .xls and
distributes to other users via e-mail.

I need to automate the process of generating the forms, saving the
report and distributing to other users via e-mail

Can someone guide me in the right direction?

Thanks,

Audrey
Sep 25 '08 #1
1 1466
Hi,

I have never done this with Forms (always with Reports).

Anyway try something like this air code:

Sub PrintForms()
Dim db as database
Dim rs as Recordset
Dim strPath as String
Dim strFileName as String
Dim strMyForm as String
Dim strFullFileName as String
Set db = Currentdatabase
Set rs = db.OpenRecordset("tblFormNames")
Set strPath = "C:\"
rs.MoveFirst
Do while not rs.EOF
strMyForm = rs!FormName
'I don't know if Forms can be output as RTF but this works with a
report
strFullFileName = strPath & rs!FormName & ".RTF
DoCmd.OutputTo acOutputForm, frmMyForm, acFormatRTF, strFullPath,
False
rs.MoveNext
Loop
rs = Nothing
db = Nothing
End Sub

That will get your forms printed and into a directory. Emailing them
depends very much on the local email client but google the group for "send
Email" and you'll get a variety of solutions.

Kevin
<au********@gmail.comwrote in message
news:bb**********************************@m45g2000 hsb.googlegroups.com...
Hi,

I have an Access 97 database where the users loads the data (from
multiple sources) and generates forms (that looks like reports) at a
click of the button and the user saves the form as .xls and
distributes to other users via e-mail.

I need to automate the process of generating the forms, saving the
report and distributing to other users via e-mail

Can someone guide me in the right direction?

Thanks,

Audrey

Sep 26 '08 #2

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

Similar topics

1
by: Brandon Michael Moore | last post by:
I'm trying to test a web application using a tool written in python. I would like to be able to generate random values to put in fields. I would like to be able to generate random dates (in a...
4
by: mescaline | last post by:
hi, i'm new to C++ could anyone refer me to a good site / good examples of random numbers? in particular including: 1) the commnds to obtain normally and exponenetially distributed r...
2
by: abhinay07 | last post by:
Hi, I would like to generate random values which are in bimodal distribution. If I can give the two peak means and the variance values, can I get any function to generate them from the uniform...
1
by: Mark | last post by:
Hi all, I have a Access 2002 FE/BE scenario where the BE is stored on a network drive. Due to the amount of importing/deleting, the database bloats quite a lot. UP until now, I have been booting...
10
by: muttaa | last post by:
Hi everybody, May i know how to write a code that generates random numbers as many times as one would want ? i.e. like the standard function 'rand()' or may i get the basic logic behind it ? ...
2
by: teddarr | last post by:
My company maintains an access database. We use this database to generate a report 3 times a day and email it to a distribution list. How do I go about using the system clock to automate the report...
1
by: Don | last post by:
I'm getting the following exception displayed in the task list at design time for my project: "Code generation for property 'Controls' failed. Error was: 'Object reference not set to an...
3
by: chiinook | last post by:
I have built a fairly simple database to manage contact information for about 300 clients. Some of these have requested that I send them our publications by email rather than post. I have created a...
3
by: Thomas Guettler | last post by:
Hi, I looked for a solution to talk to a web service which offers its signature with a wsdl file. I googled for 'wsdl python' and found ZSI. This project uses code generation. That's...
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:
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: 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
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,...
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
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.