473,407 Members | 2,320 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,407 software developers and data experts.

Industrial Database Access

I use MSAccess a lot, but rarely VB code within it.

I need to:
Run a set of reports for customer, output to html (saved in the file folder which is named after the customer number), run reports for second customer, output to html, etc. until this has been done for every record in the customer table.

I also need to ftp each of the reports to web server.

Can this be done all in one click?

File structure on web:
Clients
0015
Equipment Report
Inspection Report
Announcements Report
Employee Training Report
...etc.
0016
Equipment Report
Inspection Report
Announcements Report
Employee Training Report
...etc.


ang
Nov 15 '06 #1
2 1441
nico5038
3,080 Expert 2GB
This wil require a recordset processing loop like:

' Use Tools/References to check the "Microsoft DAO #.##" library
Dim rs as DAO.recordset

' Assign the table to the recordset
set rs = currentdb.openrecordset("YourTableName")

' Test for empty table (just to be sure :-)
if rs.eof and rs.bof then
msgbox "No data"
exit sub
endif

' here we have records and need to loop till the end:
WHILE not rs.eof
' here do the processing e.g. writing to a file with the PRINT statement
' referring to recordset fields is like: rs!fieldname
....
' read next row
rs.movenext
WEND

Finally we'll have to make a file in HTML format, but I gavethis code s you have a basic start. For the HTML we can embed the needed tags and save the file is a folder indicated on your form or e.g. in another table.
How's that in your design ?

Nic;o)
Nov 16 '06 #2
PEB
1,418 Expert 1GB
For the file creation you can use those commands

Open "Myfile.html" for Output as #1
Print #1, "<<OPEN TAG CLOSE TAG>>"
.......
Close #1
Nov 18 '06 #3

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

Similar topics

0
by: Yeongja_Choi | last post by:
How Dare Could America Industrial Property Office Be In Conspiracy With Jungang International Patent Office To Make An Extravagant International Crime ? Currently a Korean party now holds the...
1
by: dvstormuser | last post by:
I have been having trouble trying to create a sample headless application in Platform Builder 5.0. Eventually, this must have TCP/IP, WebServer, and probably DHCP for a local net. I tried using the...
35
by: robert d via AccessMonster.com | last post by:
I was asked to provide a proposal. I provided a proposal on my application and the prospective client likes what I have but is wary of it having been developed in Access. I don't understand this...
21
by: nihad.nasim | last post by:
Hi there, I have a database in Access that I need on the web. The web page should connect to the database and write records for certain tables and view records for others. I want to know a...
1
by: =?Utf-8?B?UmFqaXYgRGFz?= | last post by:
Any ideas what I should be looking at? C#. .Net 2.0 -- --------------------- Thanks Rajiv Das
40
by: walterbyrd | last post by:
I mean other than sysadmins, programmers, and web-site developers? I have heard of some DBAs who use a lot of python. I suppose some scientists. I think python is used in bioinformatics. I...
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: 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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.