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

Home Posts Topics Members FAQ

Access VBA - Filtered query - Export each row as unique excel workbook - build button at each row to navigate to workbook

3 New Member
VBA - MS Access
What is the best way to approach this problem?
I am trying to put a programming spec together.

1. I have a filtered query of data on a form
2. Each row of data needs to be exported as a unique workbook
3. File name for each workbook is derived from the row of data
4. An existing excel template is chosen for the new workbook based on data in the row
5. The data in the query changes so the exports will become updates
6. Maybe a master button on the form for the first bulk series of exports
7. After the first bulk export there needs to be automatically created at each row of data in the form a command button to Export/Update/Goto Workbook
8. If new data in the form then there needs to be a way to deal with that
Sep 27 '21 #1
6 7026
NeoPa
32,569 Recognized Expert Moderator MVP
I'm not sure I understand what you want from us.

You have a spec of sorts there. Probably not clear enough for a programmer unless they already have experience of your data but I doubt we could help you pad that out without your understanding of what you mean. You may need a clearer understanding yourself based on the language but again, I can't see what we can add.

If it helps, I'd say you have a pretty good starting point. Clarify your thinking a little on how you expect this to work and get it down on paper. Obviously separate out the bits you're explaining are already in place and what is required from the programmer - essentially make clear what is information & what is request.
Sep 28 '21 #2
gdford
3 New Member
My problem is that I do not have a full understanding on just how access "wants" to work.
For example: can buttons actually be placed on a form at each row of data in a list box?
What happens when new data is added to the existing data in the list box?
Can the buttons be managed for new data coming in? -- Is this a stupid way to work the problem in access?
I guess i am trying to figure out how to get help understanding enough about access, to write a good spec for a programmer without being an expert in Access. I agree with you - I need to start with a list or flow chart of what i am needing to do.
Sep 28 '21 #3
SamuelHarris
1 New Member
Getting started on Bytes is easy. Ask a question, write an article, complete your Bytes Profile or help others by answering questions.

Before you get started take a minute to quickly go over how to contribute and be part of Bytes by reading the FAQ
Sep 28 '21 #4
NeoPa
32,569 Recognized Expert Moderator MVP
GDFord:
My problem is that I do not have a full understanding on just how access "wants" to work.
In that case I would suggest that you ask each question that you need help with in it's own separate thread.

GDFord:
For example: can buttons actually be placed on a form at each row of data in a list box?
I'll start by saying that ListBoxes are Controls that are provided as-is and you can only configure them using the properties provided. So, No. A ListBox can't contain Command Buttons full-stop. You may want to investigate Continuous Forms for that requirement.

This thread is now limited to this specific topic so I suggest you post any other questions you need in others. Multiple threads is a good thing rather than a bad thing. It helps to keep things simple.

Fair warning:
Any discussion here of the other points is very likely to be removed - either by the OP or others wishing to comment.
Sep 28 '21 #5
gdford
3 New Member
Thanks for the heads up.
I am working up a detailed flow chart.
Sep 30 '21 #6
NeoPa
32,569 Recognized Expert Moderator MVP
Don't hesitate to ask specific technical questions. Nothing's too simple or obvious. Simple / obvious questions are probably the ones most searched for so it's good for us to have them available on the site as it means people generally can find their answers here - and that's what we want to be really - a place where you land whatever your question :-)
Sep 30 '21 #7

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

Similar topics

0
1904
by: Bryan Russell | last post by:
Hi, My asp/sql server application gets an error, but only when you use the Excel export option: <% Response.ContentType="application/vnd.ms-excel" %> (very popular w/ users) I think somebody entered a string of characters that Excel does not like
2
9493
by: jeffgeorge | last post by:
I'm currently exporting a form to Excel. Because there are controls and totals in the header, I first have a button for users to convert to a datasheet. Then I use the automated quick office Export to Excel Link then I have a button which returns the user to a form view. It's a 3 step process with the user needing to Save As in Excel if they wish to keep the spreadsheet. Are there any other easier options? It seems I should be able...
1
2100
by: JMCN | last post by:
hello does anyone know why is there a character limitation (255) in excel when i export from the reports object in excel access? if i created a macro using the transferspreadsheet action from the query with the field of + 255 characters, it will export all characters. why is there a character limitation in the reports when exporting to excel? thanks in advance - jung
8
2859
by: DC Gringo | last post by:
I have a simple button that should open another window and export a datagrid to an Excel file. I'm getting: "Name 'window' is not declared." What do I need to declare or import? <INPUT ID="Button5" ONCLICK="Button5_Click" NAME="Button5" TYPE="button" VALUE="Export to Excel"> Sub Button5_Click()
0
2428
by: Tony2299 | last post by:
How to export data using ASP to excel workbook (with multiple worksheets)? I created an excel workbook with 5 worksheets and each one has a name range. Using asp I insert data to individual worksheet. The problem is that excel treat all numbers as string/text when I do: rsExcel.Fields(0).Value = 5 When I open an excel file the value 5 is display as "5" If I use application/vnd.ms-excel method I can get the value display correctly...
1
2487
by: Randy | last post by:
I have an application with a datagrid and a button to export the grid to excel. For the most part this is working fine. Here's the export method: Private Sub btnExcel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExcel.Click Try Response.Clear() Response.Buffer = True Response.ContentType = "application/vnd.ms-excel"
5
2072
by: Lefke123 | last post by:
hello, does anyone know how to write certain information from a table / query using VB into a new excel sheet for example; i press a button and a printable excel file is made with the name "random .xls", including 2 sheets, both with different strings of text id only need the basic codes for it, if anyone knows them?
3
3814
by: samj | last post by:
Looking at code examples, it would seem this is simple, but I can't figure it out. From an Access 2000 form command button, I want to copy all worksheets in an existing workbook to an existing workbook and save the results in a new workbook. I keep getting the message "subscript out of range." Any help is greatly appreciated. Private Sub Copier_Click() ' Copy all sheets in FileA before sheets in FileMaster and save as NewFile Dim...
6
14569
by: Angelia Howard | last post by:
There is no way to narrow down the data with queries. I would like to have the vb code to split up an access table into tables of no more than 50000 each to be able to export to excel. The export has to be excel.
1
1172
by: bdavis6290 | last post by:
I have 2 tables' tblRHM and tblRHM1. tblRHM has suploc, penloc, and RHM. tblRHM1 has RHM1, suploc, penloc, fname, lname, mname, dob, address, b1, b2, b3, and uniqueID . I also have a template I would like to use. The template has fname, lname, mname, dob, address, b1, b2, b3, and uniqueID. I would like to export fname, lname, mname, dob, address, b1, b2, b3, and uniqueID from tblRHM1 to my template. In tblRHM1 each individual is part of a RHM...
0
8751
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9401
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9108
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
8093
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
6010
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
4514
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
4781
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3218
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
3
2155
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.