473,785 Members | 2,309 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Reports and Returns in Forms (Newbie needs help)

11 New Member
Hi everyone,
Well I'm a newbie to Access and your site so forgive me if my terminology is a little out. I'm currently trying to create what i thought would be a simple database for work. I'm in the British RAF and I'm currently in charge of the training cell at our Training Depot. Heres my problem, one of the tasks within my job role is to manage 3000+ training publications. These are signed out to instructors in various numbers, however i receive updates for the publications on a regular interval and at present i have to trawl through hundreds of pieces of paper to establish who has the required publication, and how many they have. At present the publications are on an excel spreadsheet, this allows me to work out how many i have in store, and how many are issued.
What i would like to do is get the database i am working on to provide me with is the following:
  • The ability to add new contact (Customer) via a form - Achieved!
  • A form that allows me to add / remove publications to the publications table - Achieved!
  • A form that will allow me to establish who has a particular publication including there contact details
  • A form that allows me to search for a publication and update information
  • A form that allows me to view what a contact (Customer) has signed out
  • And finally a form that will tell me how many of a particular publication i have signed out and how many i have in store.
The tables I have and the fields they contain are as follows:
Customers - Service Number (Key), Name, and contact information
Inventory - Publication Number (Key), Title, Amendment Number, Quantity Held
Publication Issues - Publication Issues, Customer Service Number, Quantity Issued (No Key)
I have a relationship set up between the tables which seems to work.

Could anyone advise me on how to resolve any of problems I'm having. I have been scouring the internet for weeks now but I'm getting lost in it all.

If anyone can help I'm more than willing to send you the database to look at if it will help.

Many thanks Gunnerman6875
Jan 3 '07
23 2857
Gunnerman6875
11 New Member
The attachment thing can be done immediately after posting a reply (within 5 minutes).
1. Edit post.
2. Manage Attachments.
3. Select file etc...
I'll look in again tomorrow.
Hi NeoPa,
Good news, I've now managed to resolve all of my problems apart from one. Now that I've done it it was really simple, It was just a matter of working out what i needed to query, and how to sum them!!! (I know but as i said i am a total novice!!!), However I've now spent the last 2 1/2 hours trying to resolve my final query with no success. I think i know what i need to do but cant work out how to do it. I'm going to attemp to attach the database as per you instructions so you'll be able to see exactly what i have (or haven't) got.
OK I think I need to query a query. What I am trying to do is find out a total of how many of a particular publication i have left in my store, this should be the taken from the queries: [total amount held], minus [total for each pub], (I think!)
Anyway see what you think.

Cheers

Gunnerman6875

Just tried to upload the database but the file is to large at 249kb, what now?
Jan 5 '07 #11
Gunnerman6875
11 New Member
Hi NeoPa,
Good news, I've now managed to resolve all of my problems apart from one. Now that I've done it it was really simple, It was just a matter of working out what i needed to query, and how to sum them!!! (I know but as i said i am a total novice!!!), However I've now spent the last 2 1/2 hours trying to resolve my final query with no success. I think i know what i need to do but cant work out how to do it. I'm going to attemp to attach the database as per you instructions so you'll be able to see exactly what i have (or haven't) got.
OK I think I need to query a query. What I am trying to do is find out a total of how many of a particular publication i have left in my store, this should be the taken from the queries: [total amount held], minus [total for each pub], (I think!)
Anyway see what you think.

Cheers

Gunnerman6875
Hi NeoPa,
Tried to upload the database but the file size is to large at 250kb, what now?
Jan 5 '07 #12
NeoPa
32,578 Recognized Expert Moderator MVP
Try this.
1. Make a copy of your database for backup purposes.
2. Remove all but the basic data you need for testing from all tables.
3. Compact & Repair the database (Tools / Database Utilities / Compact & Repair).
4. Compress with WinZip or similar compression utility.
5. Try the attach process again.
Jan 5 '07 #13
Gunnerman6875
11 New Member
Hi NeoPa,
Firstly let me thank you for your patience, your a star!! I've stripped the database down to a minimum and that seems to have got it down to 29kb after being zipped. As mentioned the only thing i'm struggling with is trying to get a total for the amount of pubs i have in store, this should be total amount held for each Publication minus total issued of each publication. I've been trying to work it out again thismorning but still no joy. I'm heading back to camp thisafternoon so I'll check back when i get sorted, Hope this upload works.

Cheers Gunnerman
Attached Files
File Type: zip Copy of Trg Cell Publications Database.zip (28.1 KB, 114 views)
Jan 7 '07 #14
NeoPa
32,578 Recognized Expert Moderator MVP
There's not really enough data here to test with and you haven't explained very precisely what you're looking for here BUT :
I've taken a stab at a query that MAY be what you're after.
Expand|Select|Wrap|Line Numbers
  1. SELECT [Total Amount Held].PublicationNumber, [Total Amount Held].Title, [Total Amount Held].SumOfQuantityHeld, [Total for each Pub].SumOfQuantityIssued, [SumOfQuantityHeld]-[SumOfQuantityIssued] AS Outstanding
  2. FROM [Total Amount Held] INNER JOIN [Total for each Pub] ON ([Total Amount Held].Title = [Total for each Pub].Title) AND ([Total Amount Held].PublicationNumber = [Total for each Pub].PublicationNumber);
If this isn't right, then attach the updated database (in post #14) with something like 20 records in each table and explain what you're after.
Jan 7 '07 #15
Gunnerman6875
11 New Member
There's not really enough data here to test with and you haven't explained very precisely what you're looking for here BUT :
I've taken a stab at a query that MAY be what you're after.
Expand|Select|Wrap|Line Numbers
  1. SELECT [Total Amount Held].PublicationNumber, [Total Amount Held].Title, [Total Amount Held].SumOfQuantityHeld, [Total for each Pub].SumOfQuantityIssued, [SumOfQuantityHeld]-[SumOfQuantityIssued] AS Outstanding
  2. FROM [Total Amount Held] INNER JOIN [Total for each Pub] ON ([Total Amount Held].Title = [Total for each Pub].Title) AND ([Total Amount Held].PublicationNumber = [Total for each Pub].PublicationNumber);
If this isn't right, then attach the updated database (in post #14) with something like 20 records in each table and explain what you're after.
Hi NeoPa,

Thanks for looking at the Db, Sorry I didn't have enough data to test with I've put more info into it so maybe it will help. I've had a look at the query that you wrote and to be honest I think you've got it, but as i said I am a total newbie, and still something of a "BIFF"! I understand what i need to add to the query but not sure how to put the rest in. i.e. [SumOfQuantityHe ld]-[SumOfQuantityIs sued] AS Outstanding, etc..... I am learning. I'll reattach the database and I'll try to explain in more detail what I am trying to achieve.
Basically I have a total amount of each publication Say 10. If I have 2 issued to 1 person and 2 issued to someone else. then I'll have 6 remaining in store. I want to add a action button in a form, when I click on it, it will ask me which publication I want? When I type in the Publication (Pub) Number it tells me how many of that Pub I have left in store.

Hopefully that makes a little more sense.

Again sorry for being a bit of a BIFF but your help really is appreciated.

Gunnerman6875
Attached Files
File Type: zip Trg Cell Publications Database_2007-01-08.zip (30.4 KB, 99 views)
Jan 8 '07 #16
NeoPa
32,578 Recognized Expert Moderator MVP
Is [Total remaining in store] your attempt to implement what I posted in #15?
If so, what you need to do is :
1. Copy the text from my post (just the SQL).
2. Edit the [Total remaining in store] QueryDef (A QueryDef is Access's term for a saved query.) in Design View.
3. From the View menu select SQL View.
4. Select the existing SQL (to lose it all) and Paste in the SQL copied from my post.
5. From the View menu select Design View.
6. Save if/when you are happy.

This will transfer my SQL directly into your database. This is why we always discuss Queries in their SQL (portable) form in these forums.
Jan 8 '07 #17
NeoPa
32,578 Recognized Expert Moderator MVP
If/when you are happy that you have what you're after, then we can look at replacing the 'parameters' in your queries with references to controls on a form which should make the database a little more user friendly.
Jan 8 '07 #18
Gunnerman6875
11 New Member
If/when you are happy that you have what you're after, then we can look at replacing the 'parameters' in your queries with references to controls on a form which should make the database a little more user friendly.
NeoPa!!
You are one very Clever Guy!
That does exactly what I want, I've just hidden some of the fields in the query so it only shows what i want. One question! the query asks me for the Publication Number twice , is there a way to prevent that from happening?
Jan 8 '07 #19
NeoPa
32,578 Recognized Expert Moderator MVP
There is more than one way.
Do you want to move on to driving it with a form or do you simply want a query that pops up the question(s) just the once?
Jan 8 '07 #20

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

Similar topics

5
3026
by: BStorm | last post by:
I have a transaction log file where the DataSet table's Description column is actually delimited into "subcolumns" based upon the transaction id. I would like to parse these into separate fields for reporting purposes and am wondering if anyone knows if this is easily accomplished using the .NET version of Crystal Reports? For example, the description column may be reporting on a dataentry error as follows: TXNCODE: 1010001
1
2917
by: longtim | last post by:
I have been having endless difficulty creating reports/queries that set any relevent parameters from controls in forms. I am creating an application under access 2003 but will target access 2000. The access file is in access 2000 format. I have a form that will hold the relevent parameters for the query/report that reports the statistics for all job records that match a certain criteria. These are: - A Customer Name.
7
8869
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I want my users to be able to select a report, click on a command button on a form, which will then automatically create the report as a pdf file and save it to the user's machine. I am using Adobe Acrobat (5.0 I think) and have Adobe Distiller as a
5
4042
by: Jerry Hull | last post by:
I'm working with a database developed by an untrained person over several years - and on a network that has recently been upgraded with a new server installed and MS office upgraded from 2K (I think - it might have been XP) to 2003. The database is impressive, both in what it does and the obtuse and inconsistent ways it works. There are several hundred queries, for example, with no indication of where they are used or if they are in fact...
11
6601
by: Grasshopper | last post by:
Hi, I am automating Access reports to PDF using PDF Writer 6.0. I've created a DTS package to run the reports and schedule a job to run this DTS package. If I PC Anywhere into the server on where the job is running, the job runs sucessfully, PDF files got generated, everything is good. If I scheduled the job to run at the time that I am not logged into the server, Access is not able to print to the printer. The error is pretty...
6
4143
by: Josetta | last post by:
Access 2003 I've been experiencing some problems with my "monster" database the last couple of days. I imported all objects into a new database yesterday, which pretty much stopped the crashing problems, but here's something weird: Whenever I copy an object (reports so far), I am able to open it and make changes, but when I try to save it (without closing), it appears to save (message box goes off), but it doesn't. Then, if I try to...
1
1509
by: narpet | last post by:
Hello all... I have a C# forms application that I am developing using MS Visual Studio 2005. I am trying to add some Crystal Reports to this application using the built in Crystal Reports tools with Visual Studio. It seems like it should be pretty straight forward, but no matter what I do I can't get my reports to actually show data. Here's the info: I created a crystal report viewer on a form. I created a crystal report that has a data...
8
3088
by: Brock | last post by:
I am trying to populate a Crystal Report from data in my DataGrid. The reason for this is that I want the user to be able to change values without updating the database, but still have their report reflect the values they anticipate committing to see hypothetical totals of columns from a set of records. These records are displaying properly on my DataGrid but I'm not sure how to get Crystal Reports 10 to use as its datasource the dataset...
22
9319
by: g diddy | last post by:
Hi I'm relatively new to VBA and could really do with some help please!! This is going to sound really long winded i'm sorry but I hope it will paint a picture of what i'm trying to do. Basically here is what I want to do: I want a form (Selector) to have 4 check boxes and a Run command button. When the user clicks run another form (ReportsMenu) will appear giving various options. Importantly though, when the user clicks OK (in the...
0
9646
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
9484
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
10350
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...
1
10097
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,...
1
7505
isladogs
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...
0
5386
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...
1
4055
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
2
3658
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2887
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.