Condition between dates on MS Forms - forms

I am building a vacation forms for my company.
Through a workflow the data will go to a Microsoft List.
Link to the form: https://forms.office.com/r/XSie2jVp0E
Forms Image
My question is: Is there any way to "link" the forms to the list and reserve that period of time so that the next user can´t select it.
Example:
John Chooses vacation between 20/03/22 - 25/03/22
So, when Edward fills the form and chooses, 22/03/22 - 24/03/22 it won´t be avaliable
Is there any way to do this condition?

Related

Crystal Reports Parameters - One List rather than pages

All,
My first ever post - here goes!
I am using a Dynamic Parameter to filter a report based on Purchase Order Number.
I have created the Parameter, but only so many results are on the list, then you have to change to page 2 and start looking through again, is there anyway to get all values on a single list.
I have am awaiting my IT Department to do the Registry edit to increase the search size, as I have well over 1,000 records.
Finally, I assume the user couldn't search for a relevant value in the list?
I am using Crystal Reports 2011 64 Bit Version
Any help would be great.

Access Subform SUM() Displays #Error for calculated field on main Access Form

I am trying to calculate the Grand Total for my Order Items on my main order form using the SUM().
It displays on the subform itself but errors out on the main form.
I find it hard to figure out where I went wrong after many days and my Acces skills are really beginner.
Solutions suggested in the link bellow have not solve the problem.
=SUM([Quantity]*[Price]) or =SUM(NZ([Amount],0))
OrderID is the PK in the order form and orderDetailID is the PK in the Order Details form.
Any Help would be highly appreciated
MS Access Subform with fields with #Error in form view
I am using Access 2013 on Windows 10.
Reviewed your db posted in other forum. You must have made some changes because I don't get the behavior you describe. The only time #Error shows is when there are no records in the subform. This should be expected. Instead of showing the subform total on the main form, could just have the sum show on the subform. With the mainform/subform in Form view (not Design view), click into the subform then click the Sum (looks like Sigma) button on ribbon. This will open the Total row on the subform. Or set the subform for Continuous and arrange controls to look like Datasheet.

Displaying different sheets at user's demand in a single dashboard -- Tableau

I am new to Tableau. I am not sure if I can use Tableau to create the following type of interactive dashboard.
Say I have two almost irrelevant data sources. The first one contains daily revenue for some department stores.
Store Name Date Revenue
-----------------------------
Macy 6/29/16 50,000
Century 21 6/29/16 46,000
Macy 6/28/16 45,000
Century 21 6/28/16 48,000
...
I want to use line chart to study the Revenue. So I would use Date as the horizontal axis, and Revenue as the measure, while using Store Name as the color dimension. As a result, it will render several color lines to capture the revenue in terms of date.
For my other data source, it contains similar things. But instead of doing department stores, it contains information about fast food chain restaurants.
Restaurant Date Revenue
----------------------------
KFC 5/1/16 50,000
McDonald 5/1/16 46,000
KFC 5/2/16 45,000
McDonald 5/2/16 48,000
...
I use line chart to study the revenue again.
Now with the dashboard, is there any way I can have a control with menu Fast Food and Department Store, so that if the user clicks Fast Food, the line chart involving Fast Food appears and if the user clicks Department Store, the line chart involving Department Store appears?
So far, I've been able to use this helpful article http://kb.tableau.com/articles/knowledgebase/multiple-sources-one-worksheet to display Fast Food and Department Store at request. But if the user clicks Fast Food, he will get only one line, instead of multiple lines (one for each restaurant).
I hope I have described my problem clearly.
You can fairly easily do this using a parameter control and using it as a filter in your sheets.
First, create a parameter control "View Control":
Next, create a calculated field based on the parameter for each data source:
The calculation should match the data source ('Fast Food' for the fast food source, and so on)
Then place the calculated fields in the filter card and set to True. This should hide one of the sheets and show the other. They should never be shown or hidden at the same time.
Lastly, place both sheets and the parameter control onto a dashboard. It is best to place the two sheets within the same layout container. You should get the following result:
change parameter:

Multiple Groups with New Page after Crystal Reports

I'm Using Crystal Reports 14.1. I'm creating a report that has 3 Groups. First group is agency of the company and need separate page per agency. One agency can have more than one building, so second group is building so i need separate page here too. One building can have more than one type of employees, so i need also separate page here. What troubles me is that every group have summaries at the end, which must be on the same page. Sum per agency, per building, per type of Employee. The problem is that if one agency has one building and one type of employee, i need to show those 3 summaries at the same page.
Any ideas how to do this?
in section expert next to New page after click the button labeled X-2.
From there play around with a formula like.
if count({fieldtocount},(summarygroup} > 1
so that if the group only has one record it will not page break.

Using a query within a form - Microsoft access

Hi I have a form that has a text box in the header and when the user enters the farmer Code into the text box the relevant record is displayed.
I am using the following criteria in the query within my Form Cotton12:
Like [Forms]![Cotton12].[2012]
Now I have 2 tables Table Cotton12 and Table Cotton11. They contain a database of farmers, from the year 2012 and 2011. Sometimes the data is the same sometimes it is not. For example Farmers are given farmer codes, however due to incorrect capturing of data different farmers have been given different codes throught over the years.
What I would like to do is in the same form, have the user enter in a farmer code and data from the 2012 table come up and the data from 2011 table come up so they can be compared and if that code is not in one of the tables the fields relating to that table stay blank.
For E.g. the form might look like this.
2012
Farmer Name
Acreage
Yield Estimate
2011
Farmer Name
Acreage
Yield Estimate
Your help would be much appreciated.
There are 2 potential ways to do this.
The more complex way is to create 2 sub-forms, and link them both to the main form via Farmer Code.
The easier way would be to just use a Join query to bring in both 2011 and 2012 data into the query, and then filter the exact same way you're doing it now.
However, I agree with Hans Up that the data should really all be in one table and a FarmYear field should be added to differentiate.