Data Validation - Certain Weekday

Oct 30, 2007

I have a table embedded in a form that data is entered on. The data to be entered is a project number, date, and a numerical value. I want the date to be entered only be on a Sunday. Is there a data validation rule to apply or do I need to use VBA? I do not know VBA!

View Replies


ADVERTISEMENT

Weekday Calculation

Aug 16, 2007

I am currently building a database incorporating critical events for a manufacturing process. The start date of the process triggers the expected dates for each critical event therefore I will simply add days to the start date to get the critical event date. How do I skip weekends. If the start date was on Wednesday the 5th and the first critical event was to conclude on the 3rd day after Wednesday the 5th I would like to have the critical event skip the weekend and move to Monday the 10th. I would like to do this within a query.

View 1 Replies View Related

Weekday Function

Oct 29, 2007

hello to everyone...i am a new member here.... and also a begginer in vba ....
in a few words i need to know how can i display all the monday's off a particullar month and generally another days of a month

thanx in advance

View 1 Replies View Related

Data Validation

Dec 14, 2004

Hi!

I have a Question about validation rules. I have a table with a field where the values can either be 3 numbers (like 321,245) or 4numbers separated by . (like 321.4). Other employees update these fields so it is importatant that they can't put in text etc.
In the field for validationrule I put the text (Select Distinct [fieldname] from table) but that did not work. Do anybody know an easy way to set the validation rule?

Thanks :eek:

View 1 Replies View Related

Data Validation - HELP!

Feb 22, 2005

I am trying to validate a text field (named Customer_Surname) and i want to make it so that only letters can be entered into the field and no other numbers or symbols. Is there any way this vlaidation can be done and if so, how?

Cheers

View 1 Replies View Related

Weekday Calculation Problem?!?

Oct 13, 2005

Hi,

I have been trying to calculate date difference not including weekends. I found this code to use in another thread, but am unsure of where to put it.
I am quite new to using access, so a detailed description would be very useful!!!

Here's the code posted:

intDaysInPeriod = DateDiff("d", StartDate, EndDate)
intSaturdays = DateDiff("ww", StartDate, EndDate, vbSaturday)
intSundays = DateDiff("ww", StartDate, EndDate, vbSunday)

intWeekDays=intDaysInPeriod - intSaturdays - intSundays


Thanks in advance!!

Rosx

View 2 Replies View Related

Need To Convert Weekday To Text

Oct 22, 2005

I used the format text box in my query design to generate weekdays as text from my date field. It works great. However, I was hoping to produce some graphs where I could use those weekdays as 7 categories to plot against some other data. Now I am finding that to be a problem as the "real" format is a date and when I try to change the format in excel it creates this random number. Any suggestions on how to get around this problem. Thanks a bunch.

View 6 Replies View Related

Queries :: Name Of Weekday In A Query

Aug 20, 2013

solve the following without using VBA or WeekName function.

Table 1: readers name, readers birthdate
Table 2: index, day (1-Sunday, 2-Monday etc.)
Query 1: readers name, readers birthdate, weekday of birthday (by WEEKDAY([birthdate])

Now what I need is somehow to link this query with Table 2 to give me the name of the day of birth for every reader.Actually I want to use table 2 as VLOOKUP table in Excel)

View 6 Replies View Related

Data Validation Between Two Tables

Dec 1, 2004

Hi there!

I wonder if someone can help me please? I have an Access 2000 database used to record the daily treatments received by patients in our Intensive Care Unit. The database consists of 2 tables;

Table 1 has these fields; [First Name], [Surname], [Hospital Number], [ICU Admission Number] (Primary Key), [Date of admission], [Date of discharge].

Table 2 has these fields; [Date], [ICU Admission number], and various treatment fields requiring a true or false response.

The tables are linked through the [ICU Admission Number] field.

I enter data in the first instance through Table 1 and then click on the '+' in the far left hand column to access Table 2 for each record (Patient), whereupon I enter the daily treatments - each record in this table accounting for 1 day on the unit (i.e. there must be no duplicate values).

When I open Table 2 I need three things to happen to try and avoid mistakes being made.

(1) The first record in the [Date] field must only be equal to the [Date of admission] in Table 1. It must not be possible to enter anything else

(2) In subsequent records in Table 2 the date must increase by one day until it equals the [Date of discharge] in Table 1.

(3) Once this value has been reached it must not be possible to enter subsequent dates or duplicate dates.


If anybody can help me with this query I would be delighted to hear from you. I have tried fiddling around with Validation rules but have had no luck.

If you can help then that would be fantastic.

Best regards
Usr33t

View 3 Replies View Related

Data Validation In A Table

May 9, 2007

I am trying to validate data in a table.

I have two fields, status and completion date.

What I want is the following:
If [status] field = "Complete" then [completion date] cannot be null.

I don't know if doing this in a table of the form is best using the forms Before Update Event, but I am having trouble figuring how to write it using the expression builder.

Can anyone help or offer suggestions?

View 8 Replies View Related

Validation Of Data In A Column.

Apr 12, 2008

Hello,

I am want to validate the data in a table column as per the data in a corresponding column in teh same table.

Ex. I have a table with column "Frequency" of datatype Text.
And other 12column are in the name of the months. i.e. Jan, Feb etc of datatype "Yes/No" in checkbox format. Default value as false.

I have only 4 different values i.e. Yearly, Half Yearly, Quarterly And Monthly.

If the value is Yealy then I should able to change the value on Only "Jan" from False to True.

Similarly If the value is Yearly then I should able to change the value on Only "Jan" & "July" from False to True.

Same holds true for Quarterly changing the values only of March, June, Sep & Dec from false to true.

Can anyone guide me to do this would be great.

Thanks
Sudhir

:(:(:confused:

View 4 Replies View Related

Data Validation Problem

May 16, 2005

Hi,

I am using the following validation code for the part number field on one of my forms:


DLookUp("[Door Part Number]","2-MAIN DOOR PART DATABASE","[Door Part Number] = '" & [Door_Part_Number] & "'") Is Null And Not ""

The purpose of this is to prevent users from changing/creating parts with a number that already exists in the database (and the last bit prevents no part number being entered).

It is fine for most situations except 1. If the user changes a part number, then changes it back to the original number again, the validation rule thinks this already exists and forces the user to give another part number.

Can anyone suggest how to get around this problem? It is hopefully very simple, but I can't get my head round how to do it!

Many thanks in advance!!

John

View 1 Replies View Related

Data Validation/Mining

Feb 26, 2006

I'm making a student report card. Teachers enter data and then I print them all.

Sometimes data is missed in a field or it's deliberately left empty becasue the data doesn't apply to that student.

I'd like to generate a rpt that shows empty fields. Basically, I'd like a list of student names and the field names that are empty/null so that I can approach teachers and ask them if it was deliberate on not before I print. With 100 or so fields, I can't seem to nut out a query to make it all work.

Any ideas??

View 1 Replies View Related

Data Validation Against Query

Apr 26, 2006

Hi - I have an inventory management database allowing stock to be moved between various subinventories. The user choose a transaction type and then details which goods to move. However at the moment they could enter a Quantity that is greater than that available in that subinventory.

So I have a query that gives me:
Part#
Subinventory
OnHandQty

The data entry form has a control source directly to the Inventory Table. I want to compare a text field [Qty] on a new inventory transaction (the person already having selected Part# / SubInventory from combo boxes) to the On Hand Qty.

I have tried Expression Builder in the Field Validation Property and I have tried some sql code on the AfterUpdate of the text box. I'm just not getting it.

Any help appreciated.

Cheers,
Darren

View 3 Replies View Related

Data Validation Rule Help

Feb 15, 2008

I am an absolute beginner and urgently need help with a validation rule. I need to know how to set a rule to set a minimum and maximum length for a text field record. I want minimum to be 4 and maximum to be 15 (I know I can set a max field size and set to not null but not sure how to make a minimum validation rule.
I am a teacher (not ICT!) having to cover for a sick colleague and students have asked me how to do this and although I am working my way through many of the great learning resources you link to here I have not yet worked out how to do this.
Would really appreciate any help you can give me so I can do my best by the kids.
J

View 4 Replies View Related

Transpose Weekday Columns To Rows

Dec 18, 2007

I have a table with 8 columns titled - Destination, Mon, Tues, Wed …to.. Sun. This is shown as "OriginalTable" worksheet in the attached example workbook. I want to create a new table from this original table that looks like "NewlTable" worksheet in the attached example. So I will have a new table that has 3 columns titled - Destination, Day, Weight. Weekdays will become rows so each destination will have 7 rows, one for each day of the week. The measure will be listed against each day of the week. Can someone please look at the attached example for me and help me with this.

Many thanks in advance.

View 2 Replies View Related

Date Conversion To Weekday And Weekends

Mar 12, 2008

Hi all.

I can complete this in excel no problem with monday through sunday being 1 -7, but is the same possible in access.

i.e. 12/03/08 = Wednesday.

Many Thanks Dean:confused:

Update:

DoW: Weekday([Calldate],0)

View 2 Replies View Related

Text Box Capitalizes First Weekday Character

Dec 9, 2005

Hi,

A text box on my form automatically capitalizes the fist letter of a "weekday-word".

Like when I put in "sunday" this text box converts it automatically to "Sunday".

How can I avoid this?

View 3 Replies View Related

Order By Weekday In Table And Form

Dec 27, 2013

I have a column in my table for day of the week (Monday, Tuesday, etc.). What can I enter in the "Order By" table-property to order the records by their chronological weekdays? Additionally, is there a similar type of action I can perform within a related form?

View 3 Replies View Related

Validation Rules For Data Integrety

Dec 18, 2004

I have a field that looks up the JobType using a LookUp Combobox from another table where these records for JobType will never change.

I want the user to only be able to select from the Combobox for the job type they want and be able to type the beggining of the job type so that the desired job will pop up. Now, i need the field to not be able to accept any other data than what is in the LookUp, so that they cannot enter false values. Duplicates of jobtypes are possible so a primary key cant be used.

Any help guys?
-thanks

View 1 Replies View Related

Modules & VBA :: Form Data Validation?

Jun 12, 2013

I would like to write some code to validate that when a user enters data into a text field, the user must enter 4 digits.

View 3 Replies View Related

Forms :: Validation Of Data In A Form?

Sep 22, 2014

I am trying to validate data held in two controls on a form.

The first control records membership status and is a combobox with 5 values allowed.

1 is 'member'
2 is 'under consideration'
3 is 'left' etc.

The combobox displays the description, the underlying table the number 1-5.

The second control records 'reason for leaving' and again is a combobox with 7 entries just as above.

I need to ensure that if a value is entered into the second control the value of the first control is '1' or 'member'.

Whatever I do I cannot get any code to work.

So, what event should I link to the code attached to the second combobox? On lost focus, before update or what?

What value do I check for in the comboboxes, the text or the number?

How do I set focus back to the first combobox in the event of an error?

View 7 Replies View Related

Modules & VBA :: Data Validation With Comboboxes

Jan 23, 2015

I have 2 combo boxes on a form. The 2nd box is not visible unless the 1st box is set to a specific value (Illness). Once the specific value is set, the 2nd box appears with appropriate data for selection.

Goal #1:
I would like to have the form checked before it is closed to ensure that if the condition in box 1 is "Illness" then the 2nd box must have a value and can not be null.

Goal #2:
I am also having problems with the 2nd combo being visible when form opens or becomes current. The field is set to visible=false normally but needs to be visible when form opens if the conditions mentioned above are meet (true).

Private Sub Form_Unload()
If IsNull(Me.Incident_Classification) Then
MsgBox "Please select a type of Illness"
Me.Incident_Classification.SetFocus

]Code] .....

View 3 Replies View Related

Pull Month/Year/WeekDay From Calendar?

Mar 20, 2006

I've looked and looked and am afraid that I didn't find this because it's not possible...

The forms in my db are not the clearest, but one way of simplifying it for the users is to have them click on the calendar icon and then have a few fields automatically populate with the selected date's month, another with the year, and another with the day of the week.

Is this possible? I figured out how to have a field populated with the date, but with all of the specific queries needed, I have to do it this way...

Any thoughts? Also, is it at all possible (this is totally separate) to have an icon on the desktop that brings up a login sheet for which the entry users only see the front end, but the db admins log in and see the back end?

Thanks in advance!!
E

View 5 Replies View Related

=Weekday([Date]) Show Actual Day Not Number

Apr 5, 2006

I am currently using the =Weekday([Date]) formula to show which day of the week is it, but is it possible to show the actual day not a number?

Eg instead of "1" it shows "Sunday"

Cheers

View 1 Replies View Related

Display The Dates Day Or The Weekday Eg Moday In A Text Box

Mar 16, 2005

hi,

i want to dispaly the weekday or the day of the month

i am using the formula =format([date],"d") for day or "ddd" for weekday in the text box
but it is not returning the value that i want. returns #name//
whats wrong with the formula

many thanks

View 8 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved