Tricky Validation

Jul 26, 2005

I do not know if I'm shooting for the moon here (I haven't seen anything like this yet). I have a database that keeps track of different flights for screw conveyors. The part number on these flights are based on many fields in the database, with a couple characters that aren't. I am trying to make a validation rule that checks to make sure the feilds that are a part of the Part Number match up, or if there is a way to have it auto-fill everything except the 2 characters that have to be entered manually. I don't even know if what I'm saying makes sense (Story of my Life).

Thanks to anyone who can help, and those who wish they could.

-Brian

View Replies


ADVERTISEMENT

Here's A Tricky One (for Me Anyway)

Nov 19, 2004

I have a training database in which I want to make a text box that data only needs to be entered once for 50 records (not once for each record). But I need to include the information from that box in a form that is already getting its info from another table. When I try to do this with a second table I get this- #Name. And if I include the needed field in my query I'll have to update each record rather than just one time. I have a different database that does this, but I inherited it from someone else, who locked out design view, and I can't contact him to find out how he did it. PLEASE HELP!

Thanks,
Scott

View 5 Replies View Related

Tricky Autonumber One.

Jun 18, 2007

im creating an error reporting database.
for this the hardware/system items need entering
they will have a unique id
to assist identification i would like the unique id to start with a 3 letter code refering to the type of hardware/system/periferal followed by the number
e.g a printer will ahve the id "ptr 00000" and a computer will have the id "cpu 00000" with the 3 letters automaticaly comeing from a combobox field in the same table (form to the user)
i have allready been able to get autonumbers with 3 letters before when i created the tecnitian id they are "TEC-00000"

any help thanked. im an A2 student so i know all the code stuff.

thanks in advance

Jimmythemadman.

View 14 Replies View Related

Tricky Query

Sep 7, 2006

I have an insurance policy database keeping track of insurance policy details for household and commercial shops and businesses.

Tables I have are tblPolicyHousehold, tblPolicyCommercialS (Shop), tblPolicyCommercialB (Business).
They each contain the following fields (the other fields they contain aren't relevant to this)... SumInsured, extCover1Desc, extCover1SumInsured, extCover2Desc, extCover2SumInsured, extCover2Desc, extCover2SumInsured

I want write a query to list all the policies with the building sum insured. Easy enough... Heres the catch.

In some of the extended cover fields it will say in the description...
"Building of 123 AnyStreet" so I want to get the value of that extended cover item where the description for it contains building...

So I want to get extCover1SumInsured where extCover1Desc LIKE "*Building*" and adding that value to the SumInsured field...

Any ideas?

View 2 Replies View Related

Tricky Query

Oct 2, 2006

I have one query that shows a NAME for each day.

Every day each NAME must have one and just one SITUATION.

So I'm trying to make a query that shows which have NO SITUAITON yet and other that shows which HAVE A SITUATION already.

View 4 Replies View Related

Tricky Query

Feb 19, 2008

Hi All,

I have attached a file which I need a help from, I need the subform to be populated based only on the Employee Code and the Dates where the employee logged-in a Job Order.

I dont have any code on the cmd button for I am lost on what will be the query statement to update the subform datasheet.

Thanks.

View 2 Replies View Related

A Tricky Security Problem

Nov 5, 2007

In Access 2003 we use an mdw file (unfortunately named system.mdw) that people are joined to (by using Workgroup Administrator) when they become a new user on the system. This works well except that it is time consuming to go through the process for every new user. I am aware that you can create a new mdw file using the user-level security wizard however I have extra problems. This was set up originally when access 97 was in use and the no of users was about 4, there are now 50 plus and growing. We have numerous databases that are all secured through the use of the same mdw file, however as people are only joining this mdw (by using the Workgroup Administrator), when we get someone with a little computer savvy they will figure out that by creating a generic system.mdw file they can escape all security levels that are in existence in the system.mdw file that we want them to use.
Is it possible to somehow get a database to associate itself with an mdw after the mdw has been extensively modified?
I am aware of short cuts that have the mdw file in them but they are easily bypassed. Furthermore as we have numerous probably 100 databases all pointing at the one mdw file is it possible to get them all associated with the same mdw file? I have looked through the forums and various others but have not found an answer that will help me. Can anyone help?

View 5 Replies View Related

Tricky SQL/Access Problem

Jan 10, 2008

Hi all,

My boss has asked me if I could take a look at the following problem and whilst I've searched around and tinkered with it myself I'm not making too much progress!

Here is an example:

I have forecast data for working weekdays Mon-Fri. For the weekend I need to replicate data from Friday across the Sat/Sun rows. This is just outside my remit! The data is then exported to Excel where imbalance costs etc. are calculated.

Background: The result will be that management will be able to tell what value *weekend* work will have. At present I already have a set of results for all DF activity. If we take that figure and subtract THIS result we'll be able to see how much benefit working on the weekend has.

Something management are very keen on looking into :)

Any suggestions on where to start would be much appreciated.

Thanks.

View 3 Replies View Related

Tricky Table Trouble

Feb 3, 2008

Ok, I have a table that contains a number of yes/no fields depending on location.

There are two main parts of my db that use this, one is users (for their departments) and the second is changes (for secondary locations)

I want to have two fields in the table used to reference a set of locations. Meaning i can reference the table and get locations where userID = 3 or alternativly where ChangeNumber = 6

Can somebody help me in making this work. Im currently having issues with duplicate values etc

View 3 Replies View Related

Tricky Unmatched Query

Jul 15, 2005

Hello all:

In table 1 I have some document #s
e.g.
320
321
322
170
171
172
151
152

In table 2 I have some document #s e.g.
170
171
151

I would like to create a query, that will look at the document #s starting with 17* and 15* in table 1 and look for it in table 2, if the document #s do not exist, I would like the query to spill out the following:

320
321
322
172
152

Is this possible?

Thanks so much in advance for helping!

View 3 Replies View Related

Tricky Form Question

Apr 25, 2006

Hi all - I am not sure if this is even possible, but I know if it is someone here will know how to do it. I have a table with a list of dogs names. The dogs run in a team so I have another table with their run record. Currently, the form would have a text box where you select the dog's name and then another text box where you select the position in the team so it looks like this:

name1, position1
name2, position2

and so on. I would like to create the form where the text boxes are aligned to look like the team and the person would just have to select the dog's name that ran that position and the code behind would create a record that looks like the one above. For example, here is what the form would look like:

Position1 Position2
Position3 Position4
Position5 Position6

I would like the person to be able to select the dog's name in the text box labeled Position1 then move on to select the dog's name in Position2 and so on. I am imagining the record will still look like the one above. Meaning,

name1, position1
name2, position2, and so on.

Does anyone know if this is possible? Thanks so much for all your help. This forum has been so helpful in the past, I thought I would just put this out there.

Therese

View 5 Replies View Related

Long Date Format Very Tricky

Aug 23, 2005

Hi all,
I have a table that has a long date format for example 05/05/05 02:40:34 AM how can I add an 8 hours to the date and time. Please help if you can because I"m going nuts!!! thanks. I want it to look like 05/05/05 10:40:34 AM

View 11 Replies View Related

Newbie - Tricky Importing From Excel Problem

Apr 14, 2006

I'm probably approaching this wrong, as I'm definitely out of my depth - maybe someone can offer some advice

I have 2 spreadsheets. One is a simple parts list with a code and some other info - I've loaded this into Access no problem.

The second sheet is used for ordering - it contains one text field with a company name at the top, followed by a list all in one column of all of the item codes, and another column with a description, and a third column with an x in against each item being ordered.

What I would like to do is set up a new table with the company name, and then each of the item codes which have been selected (there will always be a maximum of 10 ordered so I envisage a field per ordered item code).

I haven't got a clue how to do this - Can anyone help?

I can then link the two tables and print a report - I could probably do this bit.

Thanks for any advice

View 1 Replies View Related

Tricky - Highlight Listbox Pre-Loaded From Master Highlighted From Saved

Feb 13, 2006

Hello Everyone :D :

I have a reporting interface providing users with a multitude of reporting options and capabilities. One aspect involves utilizing the ability to allow users to save their settings on the interface due to the number of options provided. One of the aspects revolves around working with listboxes.

Each listbox is pre-loaded every time with a list of items from a master table pertaining to the listbox. The user selects their desired choices, saves*, etc...Once loading a setting, I'm looking to have the listbox pre-loaded (easy) but then auto highlighting the items selected or rather pulled from the user settings table (each listbox has own table for user saving of options). So, if a user selects items Alpha, Beta, Delta, and Falcon from a list of 100 choices, then those 4 items would be saved under that user setting, within the code table (user specific). When they load the setting back onto the user interface, it should pull the 100 choices and auto highlight the 4 items. Hopefully I've explained that properly.

*A user is able to save, save as, load settings, unload settings, etc...from the reporting interface. When a user saves settings, these settings are saved within the user settings tables. Each table varies depending on the nature of the values within the reporting interface. Listboxes have their own tables connected to the primary settings table.


Any ideas anyone? :rolleyes: :D

View 4 Replies View Related

Tricky Question - Form Part Data Entry, Part Not

Dec 16, 2004

I have what I think is a difficult problem to overcome...

I am designing a form to create an invoice. The user will select a workstream and a date range in form frmInvByHrs. Within this I want two sub-forms, one is frmInvByHrsTsht and the other is frmInvByHrsBill. I want the first one to display all the staff and their hours done, and the second one to be in data entry mode where you can enter the hours you want to bill. Each sub-form is based on a separate query.

Is it possible to do this? ie. to have one sub-form in data entry mode, and the other not? It seems to me that the data entry mode is controlled by the MAIN form regardless of the sub-form settings!

If this is not possible, do you know how I can acheive this?

Thanks

S

View 1 Replies View Related

Validation

Apr 25, 2005

how can i validate a field so that the data entered must be between the values of 1 and 10?
thanks in advance

View 2 Replies View Related

Validation

Dec 4, 2006

I have a table called Inspection, there are two fields:

- Damage To Property // data type is Yes/No
- Damage Comments // data type is text

How would i go about setting the validation - if Damage To Property is data type "No", disable the "Damage Comments" field. (ie grey it out).

any help would be greatly appreciated..

View 5 Replies View Related

Possible Validation

Apr 18, 2007

Hello!

Can someone tell me how to do a validation. The one I am trying to do is check Track No is not duplicated.

I have added my database if you may need it.

Can someone help me please!

Thanks

View 1 Replies View Related

Validation Or VB

Feb 7, 2005

Hey peeps,

I have a problem. I want my field to become "[field], An " etc. when I type "An [field]" For example, if I type "The Hundred Years War" for the field, it automatically updates to "Hundred Years War, The". I would be happy with a simple validation rule that prohibits the use of "The, A or An" in the beginning of the field but i don't think that is posibble. If this requires VB, I don't know how to use the language and never worked with it. I am completely a novice in VB, but would still love to learn how to make it. :) If you could start me out then, I would appreciate it greatly. :D

View 1 Replies View Related

Validation Help

Mar 30, 2005

Hi im new round here but am working on a database and sum of the validation rules are confusing me now.

Ok i got a couple of things to ask:

1) What rule do i use to make sure only text is entered into the field, i cant use input masks as the size of the text put into the field will vary, as its names of people.

2) Is there a way to check that all the fields on a form have been entered? So if there not all entered an error appears?

3) Finally, is there a way to reset Autonumbers? or do i have to delete all the records and start frm scratch as my autonumbers have gone abiit crazy as sum records have been deleted so my table looks rather strange.


Thank you, help greatly appreciated :)

View 10 Replies View Related

Validation

Apr 14, 2005

Need a a validation rule to allow only "a" or "p" to be entered as data into the relevant fields, can someone help?

View 2 Replies View Related

Iif In Validation

Oct 11, 2005

Is it posible to use a iif statment in a validation statment ?
i have one table project and i want to check the occurens.

IIF ([ProjectStatus] = 1 ,[ProjectCompletedDate] = NULL, [ProjectCompletedDate]<> NULL)

when the projectstatus is 1, the date cant be filled in.
is this possible in access ?
or can it only be done form based?

thanks for the reply :)

View 5 Replies View Related

Validation Help

Dec 7, 2005

I have 2 fields called confirmed and paid.

I want to have a validation which will only allow confirmed to be clicked when paid is selected. I put this validation "Confirmed"<"Paid" in the properties part of the table but it doesnt work.

Can anyone help?

View 4 Replies View Related

Validation Help

Jan 21, 2006

Hello,

For my Year 12 Computing course, I need to develop a database which will take bookings for a village hall. The database consists of a Bookings Table, a Customer Data Table and a Hiring Cost Table. It is in the Bookings Table that I am having the most trouble.

I believe I have already solved my double booking dilemma by making the Date of Event and Type of Event fields in the Bookings Table into a composite key, thereby prohibiting the entering of data where Date of Event and Type of Event are the same, making them unique.

Here is my main problem at the moment, I need a validation rule on the Date of Event or perhaps the Date of Booking field which means a booking must be made at least a week, and no more than two months in advance of the date of event. The thing is this validation rule is only needed for occasional bookings. Present, again on the bookings table is a Booking Type field which has a lookup consisting of the following “Regular” and “Occasional”, regular meaning bookings that are made at the start of the year, for the whole year.

Ideally, I would like to have it so that when the booking type field is set to regular, the validation rule for the date isn’t needed, and when the booking type field is set to occasional, the validation rule for the date is needed/present.

Could anyone help me with this? As any help would be much appreciated.

Many thanks
Daniel

If anyone would like any screenshots of the Bookings Table, email me at daniel_goodman@hotmail.com

View 1 Replies View Related

Validation

Mar 12, 2006

How can I set validation for a text field where I restrict the number of characters? For example, if I only want the user to be able to input 12 characters or less, and more than one. >=1 And <=12 would that be correct?

View 1 Replies View Related

Age Validation

Sep 19, 2006

Hello!

I'm really new to Access and need help with a validation rule

Right, i have a 'Date of Birth' field and what would the validation rule be if i only want people over the age of 12 to be able to go any further?

I've tried various other rules found online but some just don't work...

Any help would be great!

Thanks

View 4 Replies View Related







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