Access 2007-2016
Access 2000-2003
Access Seminars
TechHelp Support
Tips & Tricks
Access Forum
Course Index
Topic Glossary
Insider Circle
 
Home   News   Tips   Glossary   Templates   Forums   Help   Logon   Order   Contact Us  
 

Forums     

Microsoft Access Forum
By Richard Rost   Richard Rost on Facebook Richard Rost on Twitter Richard Rost on Google Plus Richard Rost on LinkedIn Email Richard Rost

 
This forum is for the discussion of Microsoft Access.

Access is my personal specialty. Have questions? Comments? Want to discuss how to do something? Post it here. Also, I get a LOT of questions sent to me in Email from people around the world. I'll post the interesting ones in here. Feel free to comment on them.

Click Here To Subscribe to this forum and receive an email update whenever new posts are added, just scroll down to the bottom of this page and enter your email address in the comment form.

Permanent Link
Keywords: microsoft access forum
Post New Topic

Read Between Dates by Richard R @ Fri 6/7
Use the BETWEEN keyword. Covered in Beginner 3.
Show Just This Thread        Post Reply
Read Small Office Networking Class by Anna @ 2/24/2019
I'm attempting to introduce and integrate Access into a friend's business.  Immensely enjoy your lessons and would appreciate if you can find time to instruct how to set up a network environment.

Thank you!
Anna
Show Just This Thread        Post Reply
Read Between Dates by Pete B @ 2/24/2019
I built a database in which every record has a date of birth (European notation: dd-mmm-yyyy)
What query criteria must I use to show all dates of birth for one specific year?
Show Just This Thread        Post Reply
Read Microsoft Access Forum by Pete B @ 2/24/2019
Very helpful!!
Show Just This Thread        Post Reply
Read Lock Table by Normand G @ 2/19/2019
Yes the CustomerF is open.
Show Just This Thread        Post Reply
Read Access 2013 by Nelson W @ 2/18/2019
SELECT DividendsT.ASX, DividendsT.DivDate, DividendsT.DivShares, DividendsT.[DivRate$], DividendsT.Unfranked, DividendsT.[Franked$], DividendsT.FrankingCr, DividendsT.DivRecd
FROM DividendsT
WHERE ((DividendsT.DivDate) Between [Start Date] And [End Date])
ORDER BY DividendsT.ASX, DividendsT.DivDate;
Show Just This Thread        Post Reply
Read SalesRep Email Address by Normand G @ 2/18/2019
I have a SalesRepID on the CustomerF I need to send a PDF by Email to him... I can I do this? I already have an Email address on the EmployeeT.
Many thanks.
Show Just This Thread        Post Reply
Read Wizard by Susan W @ 2/17/2019
I just did some terms ing and it seems to be working okay now.  I'm sorry, I should have let you know.
Show Just This Thread        Post Reply
Read Access Short Text Field Size by Gerald Y @ 2/16/2019
In Access Beginner 3, Field Properties 1, where we talk about wasted space:

It should be noted that for data in a text field, Access does not reserve space beyond what is necessary to hold actual values.

See https://support.office.com/en-us/article/set-the-field-size-ba65e5a7-2e6f-4737-8e72-36b93f966a33 at the bottom of the page.

Gerry Y.
Show Just This Thread        Post Reply
Read divide two queries to get percentage by jannette j @ 2/14/2019
want to join two queries so i can take the count of one query and divided by another query to get the percentage of work orders that were completed.

the numerator query:

[code]SELECT Count(MaximoReport.WorkOrder) AS CountOfWorkOrder
FROM MaximoReport
WHERE (((MaximoReport.WorkType) In ("PMINS","PMOR","PMPDM","PMREG","PMRT")) AND ((MaximoReport.Status) Like "*COMP") AND ((MaximoReport.[Target Start])>=DateAdd("h",-1,[Enter the start date]) And (MaximoReport.[Target Start])"00:00") AND ((MaximoReport.ActualStartDate)>=DateAdd("h",-11.8,[Enter the start date]) And (MaximoReport.ActualStartDate)

the denominator query

[code]SELECT MaximoReport.WorkOrder, MaximoReport.WorkType, MaximoReport.Status, MaximoReport.[Target Start]
FROM MaximoReport
WHERE (((MaximoReport.WorkType) In ("PMINS","PMOR","PMPDM","PMREG","PMRT")) AND ((MaximoReport.Status)<>"CAN") AND ((MaximoReport.[Target Start])>=DateAdd("h",-11.8,[Enter the start date]) And (MaximoReport.[Target Start])

What i want is combine two queries so i can have one query do it all instead of three
Show Just This Thread        Post Reply
Read Microsoft Access Forum by david P @ 2/12/2019
In Exper7 we learned about ManytoMany relationships. I am wondering if that relationship will work using the same table. Such as a CompanyXCompany. The reason I ask is how to perform a partnership with a company in CompanyT and a Partner from the same CompanyT. If I select a partner from the sub form, I would like to see the reverse show up on the subform when I go to that company record. Sort of a reverse type, if I select a partner, then that partner shows up without having to create that partnership in the left side of the table. If this makes sense.


Reply from Alex Hedley:

Access Relationship Seminar Blog Post
6. Complete family history with relationships (self-join, many-to-many)

Access Relationship Seminar.
Show Just This Thread        Post Reply
Read joining queries to one by jannette j @ 2/12/2019
i need to get some help with a doing some calculations with a lot of

criteria into percentages.I have many of queries were simply to come up with a number that is a count of records with a specific criteria, to be used later in a calculation. Because those criteria are so lengthy, and change with each variation of the data i use collecting, I'm not sure if an IIF structure would return the results I want. Crosstab queries can get quirky when fields are not available on different data runs. And to be honest, a crosstab query is really just a type of pivot table like in Excel, but not as flexible I want do most (if not all) of the count-collecting in VBA using recordsets or the DCOUNT() function. Then, structured the data for a report, I would consider dumping the values into a temporary table and base the report off of that. The queries I already have built are doing pretty much what I described, but when you try to link them together for the final report, if anything had missing or null values, it causes problems. Doing the work in VBA gives me much more flexibility in handling these situations. One issue I dont know VBA that well just a little bit of docmd. commands. Query one SELECT Count(MaximoReport.WorkOrder) AS [Count LEW PMCOMP] FROM MaximoReport WHERE (((MaximoReport.WorkType) In ("PMINS","PMPDM","PMREG","PMRT")) AND ((MaximoReport.Status) Like "*COMP") AND ((MaximoReport.[Target Start])>=DateAdd("h",-1,[Enter the Start Date]) And (MaximoReport.[Target Start])"00:00") AND ((MaximoReport.ActualStartDate)>=DateAdd("h",-11.8,[Enter the Start Date]) And (MaximoReport.ActualStartDate)

Query 2
SELECT Count(MaximoReport.WorkOrder) AS [Total LEWPM Den] FROM MaximoReport WHERE (((MaximoReport.WorkType)="PMINS" Or (MaximoReport.WorkType)="PMOR" Or (MaximoReport.WorkType)="PMPDM" Or (MaximoReport.WorkType)="PMREG" Or (MaximoReport.WorkType)="PMRT") AND ((MaximoReport.Status)<>"CAN") AND ((IIf(Len([Target Start])>10,[Target Start],[Target Start]+[TargetStartHour]))>=DateAdd("h",-11.8,[Forms]![ParameterReportF]![DateFrom]) And (IIf(Len([Target Start])>10,[Target Start],[Target Start]+[TargetStartHour]))
Show Just This Thread        Post Reply
Read Drop Down by Keith A @ 2/4/2019
DROP DOWN List made by field lookup wizard works great. But.... If I try to do a query on using that field as a filter - it won't work as the value is a number - not the text from the list.


Reply from Alex Hedley:

Have you tried using the .Column property to get the value you need?
Show Just This Thread        Post Reply
Read Join Queries by jannette j @ 2/4/2019
I have 11 queries that each of the quers have two one for numerator and another for denominator how can i combine all to create a crosstab query for a report.
Show Just This Thread        Post Reply
Read Access 2013 by Nelson Wallace @ 2/3/2019
I think I am almost passed my use by date when it comes to learning but I am enjoying the challenge. I have come to a standstill while developing a program to keep track of my dividends on a financial year basis to tax purposes. By the way I am in Aus so we use En date format not US.
The problem is although I have the ticker code as the first field. And the date field has a Between Field. Both fields are sorted alphabetically. When the query is run the first column (ticker) does not sort but the date field works fine sorting and selecting. The only reason I can see for this is that the ticker field is a key field in the CompanyNameT. Can anyone advise how to overcome this?


Reply from Alex Hedley:

What does your OrderBy SQL look like?
Show Just This Thread        Post Reply
Read Join Queries by jannette j @ 2/1/2019
i have two queries I want to join so i can get the percentages from each department of completed work orders but not sure how to go about it. I know i want a join and a crosstab query so i can display the results  in a report.
The first query  calculates the numerator,

SELECT Count(MaximoReport.WorkOrder) AS CountOfWorkOrder, MaximoReport.[Assigned Owner Group]
FROM MaximoReport
WHERE (((MaximoReport.WorkType) In ("PMINS","PMOR","PMPDM","PMREG","PMRT")) AND ((MaximoReport.Status) Like "*COMP")
AND ((MaximoReport.[Target Start])>=DateAdd("h",-1,[Enter the start date])
And (MaximoReport.[Target Start])"00:00")
AND ((MaximoReport.ActualStartDate)>=DateAdd("h",-11.8,[Enter the start date])
And (MaximoReport.ActualStartDate)GROUP BY MaximoReport.[Assigned Owner Group];


while the second query calculates the denominator:

SELECT Count(MaximoReport.WorkOrder) AS CountOfWorkOrder, MaximoReport.[Assigned Owner Group]
FROM MaximoReport
WHERE (((MaximoReport.WorkType)
In ("PMINS","PMOR","PMPDM","PMREG","PMRT"))
AND ((MaximoReport.Status)<>"CAN")
AND ((MaximoReport.[Target Start])>=DateAdd("h",-11.8,[Enter the start date])
And (MaximoReport.[Target Start])GROUP BY MaximoReport.[Assigned Owner Group];


please advise how i cann join the two queries to get the percentages of the departments and then do a crosstab query.
If there a better way of doing this please also let me know.

Thought of running the query this way but I get errors.

SELECT SUM(iif((MaximoReport.Status Like "*COMP"),iif((MaximoReport.ActualLaborHours<>"00:00"),1,0),0)) AS CountCompleted,
SUM(iif((MaximoReport.Status) <> "CAN",1,0)) AS CountTotal,
Round([CountCompleted]/[CountTotal]*100,1) AS PercentCompleted
MaximoReport.[Assigned Owner Group]
FROM MaximoReport
WHERE (((MaximoReport.WorkType) In ("PMINS","PMOR","PMPDM","PMREG","PMRT"))
AND ((MaximoReport.[Target Start])>=DateAdd("h",-1,[Enter the start date])
AND (MaximoReport.[Target Start])AND ((MaximoReport.ActualStartDate)>=DateAdd("h",-11.8,[Enter the start date])
AND (MaximoReport.ActualStartDate)GROUP BY MaximoReport.[Assigned Owner Group];



Reply from Alex Hedley:

UNION Queries can join two datasets.
Show Just This Thread        Post Reply
Read Wizard by Susan W @ 1/29/2019
The input wizard does not seem to be working for me.  What could I be doing wrong?


Reply from Alex Hedley:

How is it not working?
Show Just This Thread        Post Reply
Read Word Automation by Joseph M @ 1/26/2019
I have a word document that I kick off using an access macro " run application" the document opens fine now I want to automate it so it will start printing on open. Any ideas? I also would like to word doc to close are return control to access.


Reply from Alex Hedley:

Have you tried recording a macro in Word and see what happens when you print?
You could then apply that code in your Access VBA.

Do you still have a reference to your Word Document?

Untested:
objWord.Application.Quit wdDoNotSaveChanges
Show Just This Thread        Post Reply
Read Enforce Referential Integrity by Ariel D @ 1/23/2019
Hi,

I'm currently working with Access Expert 8: Lesson 5-Order Detail Subform. I'm building up the relationships for the three tables: CustomerT, OrderT, and OrderDetailT. However, when I build the relationships for the OrderT and OrderDetailT and click the "Enforce Referential Integrity, then click OK an ERROR message popped up:

Microsoft Access can't create this relationship and enforce referential integrity.
"Data in the table 'OrderDetailT violates referential integrity rules.
For example, there may be records relating to an employee in the related table, but no record for the employee in the primary table."

I've followed the structure in the table, and tried various ways to enforce referential integrity but to no avail. Maybe I missed something, please advise of what's causing the error. Thank you.

Anyway, I'm really thankful for the opportunity of knowing your company. Richard Rost did a great job in making every lesson very comprehensible. Thanks a lot.

Ariel


Reply from Alex Hedley:

Have you added Sample Data to the tables? There is something in there that is stopping it, you could clear that out, set it up and add it back in.
Show Just This Thread        Post Reply

Show Older Posts         Collapse All Topics

 

Post Your Comments or Subscribe
    If you would like to be notified of new posts on this forum,
    just enter your email address below. It will be kept private.
 
If you just want to subscribe to get email updates when this forum is updated, then enter your name and email address and check the Notify Me box below. If you would optionally like to add your comments below to be posted, they are welcome.
 
  Your Name:  Required
  Your Email:  NOT Public
  Subject:
  Comments:

 

Sorry about this step. It's just to keep the spam bots away:
  Verify: What is 7+6:
  
  Notify me when the this forum is updated
  Remember Me for my next comments
  
 
 
Please do not use this form for Customer Service inquiries! If you have questions about your account, shipping info, courses you've ordered, need passwords, etc. please use the Customer Service Center instead.

I value your comments. They will be displayed on this page (above). Your name will be displayed, but your email address will not be.
As always, I promise to never give away your personal information to anyone else, ever.

NOTE: If you don't leave your name and email address, DON'T expect a reply. I can't promise a personal reply to everyone who posts here. I TRY my best, but I cannot guarantee it. If you don't leave your real name and email address, I won't even bother. I usually just hit DELETE. -Richard

 

 

You may want to read these articles from the 599CD News:

11/20/2018Microsoft Access Developer 12
8/25/2018NEW: Access Dev 9, 10, 11
8/25/2018Microsoft Access Developer 11
8/25/2018Microsoft Access Developer 10
8/25/2018Microsoft Access Developer 9
8/23/2018Access Dev 11 is ONLINE
8/17/2018Access Dev 10 is ONLINE
8/15/2018Access Tip: Search Form
8/15/2018Access Tip: Locked v. Enabled
8/15/2018Access Dev 9 is ONLINE
 

Learn
 
Accessindex
Excelindex
Wordindex
Windowsindex
PowerPointindex
Photoshopindex
Visual Basicindex
ASPindex
Seminars
More...
Customers
 
Account Login
Online Theater
Downloads
Lost Password
Free Upgrades
Insider Circle
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Articles
Search Our Site
Waiting List
Production Schedule
Collapse Menus
Help
 
Live Chat
Customer Support
WalkThru Tutorials
Troubleshooting
FAQs
TechHelp
Consulting Services
About Us
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Order
 
Video Tutorials
Handbooks
MYOLP Memberships
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Gift CDs
Contact
 
Live Chat
General Info
Support Policy
Contact Form
Email Us
Mailing Address
Phone Number
Fax Number
Course Survey
Facebook    Twitter

Google Plus    LinkedIn

Blog RSS Feed    YouTube Channel
Richard Rost Microsoft MVP