473,842 Members | 1,330 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can I export Form&subform fields to excel cells in template

19 New Member
Hi all who wish to help,

I have created a database that contains five different tables. Each linking to a main table through an ID.

The database opens asking for an ID. When ID is input and the relevant command button is clicked a form opens spplying details for this individual as well as any other data from the other tables in subforms.

The overall form and subforms are based on queries.

I want to export the data to excel, on seperate spreadsheets for each query which i have completed successfully using the 'Transferspread sheet' function.

The problem here is I cannot reformat the column headings.

I would also liek the data to be exported into excel using a template so that each query has it's own worksheet but then each field is exported into a particular cell.

I have used the advice on the following link at tektips:

http://www.tek-tips.com/faqs.cfm?fid=71 71

which works only for the data in the overall form but not the subform data/queries. Does anybody know a way that I could use this to export the additional queries to worksheets within the same workbook and in their own cells?

Any help appreciated.


Thanks
Feb 23 '11 #1
1 1535
TheSmileyCoder
2,322 Recognized Expert Moderator Top Contributor
It is certainly possible. Start by posting the code you have, so we have a starting point to proceed from.
Feb 24 '11 #2

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

Similar topics

4
7026
by: Dave Boyd | last post by:
Hi, I have two very similar forms each with a subform. The main form gets a few fields from the user and passes this back to a query that the subform is bound to. The requery is done when the user enters the last qualifying field on the main form. In one case this works fine, the subform shows the data the user wants to update -- which means showing all the data put in previously (ie showing this via the requery and the continuous...
11
7185
by: mrowe | last post by:
I am using Access 2003. (I am also using ADO in the vast majority of my code. I recently read a post that indicated that ADO is not all that is was initially cracked up to be. In the back of my mind I am wonder if this is causing my problem, but I don’t want to go through the work to convert to DAO unless I know it is truly in my best interest.) I am having problems getting a requery to show up consistently on a couple of forms. I have...
4
1918
meLady
by: meLady | last post by:
Hello, I have a form called feedback with a subform called feedback Options. I did some counting calculation in master form "feedback" at the bottom page. the calculation is about count the number of yes, no and null that are in the feedback Options. the problem is that when navigate to a new form the calculation of the previous form is still in and I tried many times to find a solution but I couldn't ...
1
3322
by: solargovind | last post by:
Hi, I have one Form in which i have one subform also which links together by one common_id(Payment_id). When i display record, I need to delete Current record in both form & Table. I used the following code to delete. --- Dim response Dim strsql As String response = MsgBox("Are you sure to Delete?", vbYesNo, "Payment Alteratiion") If response = vbYes Then
8
1967
by: Christina123 | last post by:
Currently working with Microsoft Office 2000 and whatever version of Access came with that. I am developing a database to track the comings and goings of shared tools. Everything works splendidly except I have printing issues, primarily I have no idea what I am doing. I have a form that contains the date and the info of the person doing the ordering as well as a subform that has the serial number of the part, the description and storage...
3
1756
by: wquatan | last post by:
Hi I have a Form with a SubForm The Form is bound to a Query, and is used for navigation. In the event Form_Current there is : wrkField = Me!TableField SubForm.requery
7
2839
by: PotatoChip | last post by:
Ok, I have a form and a subform. The form shows a document with it's pertinent information. The subform has some of the same fields as the form and shows where the document was sent. The main form fields are: Number, Type, Title, Version, EffectiveDate, Status, Owner, Reference, ChangeRequestNo, Comments The subform fields are: DDL_ID, Type, Number, Version, DocCtrlNo, Location, Returned, ChangeRequestNo I know it is redundant to have...
1
1689
by: z.ghulam | last post by:
Hi, I have 2 subforms embedded within a main form. Whenever I do a Filter, the data in the main form appears, but nothing shows in either subform? Is there a way round this? I was using the Filter-by-Form button on the toolbar. I've also got a Find Record button on the form... DoCmd.DoMenuItem acFormBar, acRecordsMenu, 0, 2, acMenuVer70
0
1404
by: paulquinlan100 | last post by:
Hi I have 2 tables with a 1 to many relationship a Pipeline table which can have several impacts (impacts table). What i want to achieve is a form in datasheet view where the impact columns are are simply stuck on the end of Pipeline table. Ideally, i would limit this to 3 sets of extra columns on the end based on the top 3 impacts but would also be happy with showing as many extra columns as there are impacts.
10
8727
by: edgalljr | last post by:
I have a Button on a form that filters on 2 fields using the following code: Private Sub cmd_NavyDue_Click() With Me .FilterOn = True DoCmd.ApplyFilter , " = 'NAVY' And >1" Me.OrderBy = " DESC" Me.OrderByOn = True End With End Sub This works fine. However, I also want to filter on a field in a Subform when no record exists (or Is Null).
0
9876
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10618
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10320
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9459
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7045
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5699
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5887
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4096
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3148
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.