I've tried a couple suggestions on this, but so far I still can't figure out an efficient way to do this. Hopefully someone can help me out.
I have an access db that uses tables from an ERP db in Oracle connected via ODBC.
I need to give a user a .csv file that contains a summary of payroll data over an extended period of time, i.e. 2 yrs.
The difficulty I'm having is that the user wants all the data in one .csv file, this can equate to a few hundred columns plus. The columns include a variety of demographic data. Getting this is simple. My issue is trying to display, in summary by pay period, by pay code, the total number of hours an employee worked during the period of time entered. For example, Bob worked all 26 pay periods last year. What the user wants is a .csv file which includes each pay period, as a column header, and the total number of hours Bob worked for each of 6 specific earnings types/codes (REG, OVT, etc.).
Any thoughts on how to approach summarizing the hours by pay period by earnings type/code and listing each period and earnings type in a single table that can be exported as a .csv file?
As far as I can tell I need to be able to run a series of queries using the pay period end date, update the export "table", and then run the same series of queries using the next pay period end date and updating the next series of columns that correspond to that pay period.
Is there anyway to dynamically create/add fields to a table based on how many times I loop through a series of queries, i.e. the number of fields in the table will vary depending upon the date range the user enters before executing the report.
Hopefully this makes sense
Windows XP2 Access 2003
1 1361
Hi there Zags,
You are looking for a Make Table query. Refine your SELECT query to achieve the results you want, right-click on the upper boundary of the query design view and choose Query Type...
However, you likely should sit down with the client and try to explain to them that having the data as they are requesting is going to result in some largely meaningless information! That many columns are not going to be easily viewed, and will probably result in the end user ignoring/skipping most of the information.
If they are immovable, then give them what they want... but be prepared when they come back in a bit asking for some reorganized data that is more meaningful to them.
Regards,
Scott
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Pat |
last post by:
i've one dev and one prod, one of the table in dev database having 70
millions records and need to export to one of the table in prod
database. both machine got 2 nic, one 10/100 mbps and the other 1gbps
speed. databases on raid5.
the transmission between two servers is very slow, it's transmitting
1000 rows per 4 secs. sql 2000 with sp3 on both machines, i'm using
dts. please advice to speed up.
thanks,
Pat
|
by: noor |
last post by:
Hi
I have been working since 2 days to device a method to export sql table
into csv format. I have tried using bcp with format option to keep the
column names but I'm unable to transfer the file with column names. and
also I'm having problems on columns having decimal data.
Can any one suggest me how to automate data transfer(by using SP) and
retaining column names.
Thanks
Noor
|
by: Keon |
last post by:
Hoi,
I'm using a database with alot of records in 1 table (more than 3000). If i
want to export this table to excel i only get it till record 2385. Do
someone know how i can solve this probleme?
To export my tables i use folowing code:
StTotaal = stLocatieName & "\Archief\" & Year(Date) & Month(Date) &
Day(Date) & "_Gegevens.xls" 'location and name where the table must be
saved
|
by: brijesh |
last post by:
Sir,
I am a development engineer in network application
I have a problem regarding upgrading my database
the problem is how do I transfer the contents from one table in a
database from one server to postgresql database table in another
server.
the data contents is in few MB.
can you suggest me an easy way to do so?
regards
Brijesh Shetty
|
by: JLuv |
last post by:
What i want to do is take the checked data from a datagrid, send it to
a table, then show that table on an Excel Spreadsheet. Here is a little
bit of my code...
//adminProgress.aspx
<asp:DataGrid ID="pGrid" runat="server" AutoGenerateColumns="false"
AllowSorting="true">
<Columns>
<asp:TemplateColumn HeaderText="Select">
<ItemTemplate>
| |
by: blackd77 |
last post by:
What I would LIKE to do is noted in the subject line. What I'm finding
is that "edit SQL" appears to only be an option if I am creating a
table. If I select "append to" the option to edit SQL shades itself as
unavailable.
The reason I'd like this is that there is a datum in the flat file that
indicates whether that record should be appended to that table noted
above. There are other ways of dealing with this "problem" but it would
be...
|
by: hmiller |
last post by:
Hey there folks:
I have been trying to get this work for about a week now. I'm new to
VBA...
I am trying to transfer a populated table in Access to an existing, but
blank, Excel worksheet. I have seen methods for transfering cell by
cell, and understand how to get that to work. However, my recordset has
3600 cells of data. Cell by cell is just not an option. I am looking
for a way to specify the starting cell (most upper left cell) in...
|
by: Simon |
last post by:
Dear reader,
In a Make-Table query the TickBox from the master table transfers in to a
binary value in the new table.
How can I force the Make-table query to keep the TickBox in the new table as
it is in the master table a CheckBox.
|
by: holdingbe |
last post by:
Hi,
I exported dumps from windows machine to linux machines.I export dunps the successfully but during the import i got the error
IMP-00009: abnormal end of export file
IMP-00028: partial import of previous table rolled back: 2255968 rows rolled back
I transfer the dumps from windows to linux machine using FTP use
binary modes.
my export command:
|
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...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
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...
|
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...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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();...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |