Form For Report Generation
Sep 3, 2006
hi guys. i am currently working on an human resources information system. i am currently using ms access 2003 and the report form looks like this:
http://i114.photobucket.com/albums/n258/lushh_16/reports.jpg
the function of this form, is once a button is clicked, the appropriate report for that button will be generated and will automatically be viewed in ms excel. the problem is that i don't know the VBA code that will perform this function. i read books about access, but unfortunately i can't find the exact answer to my question. so, if anyone could give me some idea on where i can find sample codes for this function, i would very much appreciate it. thanks in advance.
View Replies
ADVERTISEMENT
Aug 7, 2006
I'm rather new to Access, and still learning. Right now, i have 2 tables:Employees (Firstname, Lastname, Dept, Start Date, Inactive (yes/no field), Inactive Date)MainData (tracks daily stats for each of the sales people in 3 depts)i have a form set up for each to input the required data. I also have 2 queries:Active Employees (filters out inactive employees; used for a dropdown menu of employees on the MainData form.MainDataTotals (totals the fields of MainData; Total Customers, Total Sold, etc)What I'd like to do is set up a form to generate a report of the overall totals of all the sales people, totals for the separate depts, and totals for the company. I have the form designed already, and it works, but i do not know how to set it up so i can filter by chosen date. I want to be able to choose which dates the report will cover off of a form. For example, a dropdown menu with the months listed, and have the report only show the totals for that month. I will only need monthly and yearly reports.
I have searched extensively for this, even on these forums, i cannot find the answer to my question or enough info to figure it out.
View 4 Replies
View Related
Sep 3, 2006
hi guys. i am currently working on an human resources information system. i am currently using ms access 2003 and the report form looks like this:
the function of this form, is once a button is clicked, the appropriate report for that button will be generated and will automatically be viewed in ms excel. the problem is that i don't know the VBA code that will perform this function. i read books about access, but unfortunately i can't find the exact answer to my question. so, if anyone could give me some idea on where i can find sample codes for this function, i would very much appreciate it. thanks in advance.
View 4 Replies
View Related
Jun 27, 2006
Hey,
Newbie here,
my frist error message appears as soon as I create a new database. As soon as a I create the name and it opens the new database a message pops up that says "Error Loading DLL" does anyone know what this is? and will it create a problem for me?
Secondly, I have a database that will be used for employee Reviews so the fields I have are as follows: Key, Date, Time, Department, Employee, Topic, Explanation, and Supervisor. I want to be able to generate a report for each employee, however I am not sure how to use the wizard to create this. If anyone knows of some tutorials or report aids I'd love to get my hands on them!
thanks!
~Jennifer
View 1 Replies
View Related
Aug 30, 2006
I have a multi-layered question regarding setting up an access database for fluid samples sent in by a customer.
Ideal Setup:
The database would prompt me for the Sample ID number which is a unique code we give to each sample. It would then prompt me for the customer name and if given an existing customer name it would pull up all the contact information for the customer. It would then prompt me for the machine ID# that the sample came from, from which it will pull up the data from 10 previous reports and place into the current report.
I would then input the current data for the sample after analyzing it. I then have an automated control to convert the report to a .pdf file and send it via outlook. It would also be nice if the report was uploaded onto a website that the customer could access, but this is a whole different issue.
Is this setup possible with Access 03 and if so is it even remotely possible for a newbie like me to create? Additionally, what would the time investment be for a project like this for a beginner? Are there any other more effecients ways or programs to accomplish this level of automation?
Thanks for any help you might lend!
View 1 Replies
View Related
Dec 8, 2005
Hi
I have a column which is made up of two parts from the table as follows...
function area .... FINANCE
ID number ... 001, 002, 003 etc
combined together this will make my ID column which should look somehting likie this : FINANCE 001, MARKETING 002 etc
BUT
the problem is that now i need to import some existing data into the tables and it appears as though the existing data has repeating numbers for different function areas
e.g.
FINANCE 001
FINANCE 002
MARKETING 001
MARKETING 002
how would i get this imported into my current table structure?
View 4 Replies
View Related
Dec 16, 2005
As much as I would like to tell my boss he's insane I'd also like to keep my job. I know this is possible, but it sounds very complicated. Basically, I need a way to generate queries on the fly. This is geared towards someone who doesn't know SQL of course. I know basically what he's looking for, comparing sales over some period of time. However, he might want annual numbers, quarterly numbers, percentages, overages/shortages, and any kind of sales related query you can think of. The only way I figure I can do that is to have a form build the SQL statement, save the SQL statement as a query, then have him open the query. Is there another way I can do this without necessarily saving a query first?
View 6 Replies
View Related
Sep 11, 2006
Hi guys, im new to all this so take it easy
Im trying to create a document register in Access 97 to create and track document numbers, for this i want to assign a 6 number unique id to each record starting at 000001 going up in order to 999999 which will form part of a unique docuement number ...i know this may be a really easy thing to do but can anyone tell me how?
Cheers
Dave
View 1 Replies
View Related
Sep 25, 2006
Hello,
I have this query:
SELECT UNIT.Code, Rnd() AS Expr1
FROM UNIT;
The problem is that in the Expr1 field all the numbers are the same. I would like to have random numbers that are different for each record (generate new random number for each record)
Thanks for your help
Cheers
View 2 Replies
View Related
Oct 4, 2006
Hi Guys
Dont quite know if this is the right place to post this but here goes any way
Im creating a database where customers can submit a question, it centres around a form where a user enters various information such as initials, telephone number, and various selections from from down boxes.
I have placed a button at the bottom that saves the record, what i want is when that button is pressed for a box to pop up giving the user a unique reference number which is made up of the information they have entered, such as
FIRSTINITIAL-LASTINITIAL-DATE-INCREMENTALNUMBER
I want this number then to be stored along with the record so it can be searched for by this number.
I have done searches for similar questions but cant find one that matches what i want to do
Thanks in advance
View 2 Replies
View Related
May 5, 2005
:confused:
Hi,
I would like how I can generate automatic Id in a table with following structure. billid number, billdate date& time.
I don't like to use AutoNumber built in feature.
Regards.
Soumen.
View 1 Replies
View Related
Aug 14, 2014
I have a database where my team will enter manual payment calculations into. Once entered, they will run and print the report for actual payment.
The report I have groups by payment type (see attached image of paymetn types) and then sub totals by group.
I need to somehow get these totals and use them to generate a gross payment. In the attached example, the gross would be the sum of worked hours + before tax allowance + after tax allowance. I'm not sure how I can do this in the group footer.
I have attached images.
View 1 Replies
View Related
Jul 29, 2013
I am trying to automate the generation of a reference number incrementally by 1.
In my main table (tblBooking) I have my primary key field autBookingID which is an autonumber.
In another table (tblBookingStops) I have the primary key as autBookingStopsID as the autonumber and then numBookingID linked to the above table (tblBooking). I have another field called txtGPSID so this is the number I would like to automate.
So for example:
tblBooking:
autBookingID: 1234
tblBookingStops:
[Code]....
I want to put the code that would populate the txtGPSID on a form in datasheet view and would like to put the code on the load event.
View 5 Replies
View Related
Nov 13, 2012
I want to input a number value in [field1], then i want [field2] to generate an auto number BUT i want it to increase based on [field1] THEN combine them into [field3] creating a unique SKU for every item I have.
EXAMPLE1: I will type in [field1]: "001234". [field2]will enter "000001" because it is the first occurrence of "001234" in [field1]. [Field3] will then have a value of "001234-00001"
EXAMPLE2: I will type in [field1]: "002468". [field2]will enter "000001" because it is the first occurrence of "002468" in [field1]. [Field3] will then have a value of "002468-00001"
EXAMPLE3: I will type in [field1]: "001234". [field2]will enter "000002" because it is the second occurrence of "001234" in [field1]. [Field3] will then have a value of "001234-00002"
View 4 Replies
View Related
Jun 3, 2014
I'v looking for since a couple months a go to make a report direct from access form using crystal report but i havent found it yet. I'v tried this code and its giving me errors. " run time error 1004 method range of object _global failed "
how to make a report using crystal report direct from ms access as front end application ? is it possible to use crystal report ?btw i use database sql server 2008 and MS Access 2007 as my frontend application.here's the code that i'v found and gives me an error
Dim CR As New CRAXDRT.Application
Dim rep As CRAXDRT.Report
Set rep = CR.OpenReport(Range(" ??? ")) * i getting error in this line, what should i do to fill it ??
rep.ParameterFields(1).AddCurrentValue "Boston"
rep.ParameterFields(2).AddCurrentValue "Cars"
rep.Database.Tables(1).SetLogOnInfo "tool", "db_tsel"
rep.ReadRecords
rep.PrintOut promptUser:=False, numberOfCopy:=1 ' promptUser:=True doesn't work
View 2 Replies
View Related
Jun 15, 2005
Hi,
I've been given an existing database to modify, and I'm struggling somewhat to see how the author has implemented certain functions.
On a main menu form (autoexecs on starting the database), there are various "Search By" option buttons to generate a report, ordered in various ways. The "On Click" field for each of them refers to a macro, called Buttons, and a line in that macro dependant on the type of search (e.g. OnClick = Buttons.byPerson).
The Buttons macro runs an OpenReport command, the report corresponding to the search type (e.g. Buttons.byPerson has an OpenReport command for the "Report by Person" report).
However, when I click the search buttons (or indeed run the corresponding reports) I instead get another form which allows the search criteria to be specified - this then generates the report (I would assume based on the relevant query - e.g. Person Query), but I cannot understand how this works.
Google searches have not helped much as I can't seem to find an adequate search phrase to use, and I've been staring at the thing for some hours now. Any help getting me off in the right direction would be much appreciated!
View 4 Replies
View Related
Jul 12, 2006
hi guys,
i have a form with a button. when i press the button it opens a report :
DoCmd.OpenReport "popreview", acViewPreview, acWindowNormal
the problem is that the report is in the backround and i cant use it until i close the form.
the form is setup as a popup.
is there any way to use the report and have the form opened at the same time?
thx, max.
View 5 Replies
View Related
Aug 17, 2006
Hey all,
i have designed a invoice form and am having trouble taking the values on the invoice form to a report. The report will act as an invoice to be printed. On my form there are mutliple fields from 2 tables such as 'invoice master table' which includes details such as invoiceid,invoicedate, customer number,employee number. The second table(used as a subform) that is used in the form is 'invoice details table' which contains details such as productid, retailprice, quantity. I have made other fields on the form to do calculations such as total price, price of each product depending on the quantity. I was wondering how i would design a report that contains these details from the form.
All help would be great :) have a nice day:cool:
View 3 Replies
View Related
Dec 12, 2004
I have a macro which generates a report every time the user tabs to a field on my form. I want the user to continue tabbing within that form and be able to view the report. Instead, the focus (tab) switches to the report. How do I get the focus (tab) to stay on the form?
View 3 Replies
View Related
Aug 24, 2004
I have a form, which has a subform on it...
i want to export the info from these forms straight into a report, can this be done ? if so how please
View 1 Replies
View Related
Aug 30, 2006
Hi
I'm pretty new to all of this. I've set up a simple database. I have a form in it for inputting information and then there is a command button on the bottom which prints out a report I've created with the information on it. This is all working great except it prints evey record and I only want the current record printed out.
I've tried the help and it goes into detail about OpenReport and PrintOut in macros. I have no idea what a macro is or what to do with it.
Can anybody please help me and give me step by step instructions as to how to print out only the current record in the report from the command button.
Your help is greatly appreciated:)
View 1 Replies
View Related
Nov 1, 2006
I have a form (entry screen to enter data) I then created a report in the layout I need for my order form. I want to creat a button that a user can press and it will print the current record to the report (order form layout)
Here is my current code for the print button on the form page:
Private Sub btnPrtOrderFrm_Click()
On Error GoTo Err_btnPrtOrderFrm_Click
Dim stDocName As String
stDocName = "rptOrders2"
DoCmd.OpenReport stDocName, acNormal
Exit_btnPrtOrderFrm_Click:
Exit Sub
Err_btnPrtOrderFrm_Click:
MsgBox Err.Description
Resume Exit_btnPrtOrderFrm_Click
End Sub
The only problem is when I tell it to print if I am on record number 2 on the form, it prints both record 1 and record 2. I only want the current record i am in to print. Any ideas much appreciated
Dean
View 2 Replies
View Related
Apr 17, 2007
Is there a way to print a report for only the form you are on.
Let say Iv got a list of customers on a form and I have a query for all the customers.
View 1 Replies
View Related
Apr 23, 2007
Can someone help me do this in a better way? I have built the two queries below to give me a montly sum of some church contributions. On the "Reportsfrm" form I have two combo boxes to choose the month. One of the combo boxes is setup to choose the months of the year names. This is used merely to put the name of the month on the Monthly Report. The other combo box chooses a number from 1-12 which is used in the first query below to choose the month for the query. This works fine, but makes the DB user use two combo boxes. Does anyone know of a way that they can just choose the month by name? Thanks in advance for your help.
SELECT MemInfotbl.ContribDate, MemInfotbl.ContribAmt, Month([ContribDate]) AS ContribMonth
FROM MemInfotbl
WHERE (((Month([ContribDate]))=[Forms]![Reportsfrm]![Monthcbo]));
SELECT Sum(Monthlyqry.ContribAmt) AS SumOfContribAmt
FROM Monthlyqry;
View 8 Replies
View Related
Jun 20, 2007
Hello,
I have made one form for report purpose. When I enter Start date and End date, I get report of the date range. What I am looking that I want to print the start date and end date in my report. How can I reference date text box in my report?
thanks
mithani
View 7 Replies
View Related
Jan 27, 2005
I have a report that, when closed, I would like to refresh the main form, or subforms in it (Whichever is easier)
Main form: frmMain
Sub form A: subWebLCSel
Sub form B: subWebPartSel
Report: rptLabels
I tried:
forms!frmMain!subWebLCSel.form.requery- told me it cant find the field subWebLCSel
Forms!subWebLCSel.Requery - tells me it cant find the form subWebLCSel
Any ideas?
View 7 Replies
View Related