473,505 Members | 14,658 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Multiple Validation Rules in Form Field

I am in the process of creating a database for an upcoming conference.
I have created a seperate database for the conference. We are a
headquarter office and most (not all) of our attendees will be from
the regional offices. I have created a form (Attendees) and a sub-form
(tblClinic Subform). The information is pulling from 3 tables:
Attendee Information, tblClinic, tblClinicLocations & tblClinicPeople.

My problem is that I want the form to automatically pull in the
center's mailing address for attendees coming from a center into a
section on the form that I called "Clinic Information". I can almost
get it to do this using the string: =[LastName] Like [tblClinic
subform].[Form]![txtlname] - my problem is that if either two people
have the same last name or if someone who is not from a center has the
same last name as a person from a center my form pulls in the wrong
infromation or irrelevant information. Is there some way to do
multiple validations, like first and last name?

Thanks!
Msilushn
Nov 12 '05 #1
2 2252
ms******@yahoo.com (ilushn) wrote in
news:99*************************@posting.google.co m:
I am in the process of creating a database for an upcoming
conference. I have created a seperate database for the
conference. We are a headquarter office and most (not all) of
our attendees will be from the regional offices. I have
created a form (Attendees) and a sub-form (tblClinic Subform).
The information is pulling from 3 tables: Attendee
Information, tblClinic, tblClinicLocations & tblClinicPeople.

My problem is that I want the form to automatically pull in
the center's mailing address for attendees coming from a
center into a section on the form that I called "Clinic
Information". I can almost get it to do this using the string:
=[LastName] Like [tblClinic subform].[Form]![txtlname] - my
problem is that if either two people have the same last name
or if someone who is not from a center has the same last name
as a person from a center my form pulls in the wrong
infromation or irrelevant information. Is there some way to do
multiple validations, like first and last name?

Thanks!
Msilushn


Yes: =[LastName] Like [tblClinic subform].[Form]![txtlname] AND
[first Name] like [tblClinic subform].[Form]![txtfname]

Bob Quintal
Nov 12 '05 #2
Bob,

Thanks for the input. For some reason it didn't work, I think I was
putting the information into the wrong area. I put it into the query
and now it seems to be running okay. Thanks for getting me back on
track!

Msilushn
Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
3881
by: Stefan Richter | last post by:
Hi, after coding for days on stupid form validations - Like: strings (min / max length), numbers(min / max value), money(min / max value), postcodes(min / max value), telefon numbers, email...
3
15896
by: Dalan | last post by:
I apparently need a bit of assistance regarding the structure of some validation code on the BeforeUpdate or AfterUpdate event on a form for several fields that need to controlled. I did search the...
1
1655
by: Mark | last post by:
Hi All, I have a small problem which I have so far been unable to solve. I am working on someone else's database which needs to ensure that certain fields are filled in if the value of other...
2
2669
by: Dnna | last post by:
I have a table which is bound to an Internet Explorer XML data island. I'm using ASP.NET's client-side validators for an input field in the table. The problem is that if the input fields are in...
14
6268
by: Matt | last post by:
I want to know if ASP.NET Web Forms Validation Controls are Server-Side or Client-Side form validation? Since I think each validator control can select either 1) JavaScript based error dialog or 2)...
8
579
by: TJS | last post by:
what are folks doing to get around limitation of one server form per page ?
10
5684
by: gweasel | last post by:
What is the best way to apply a Validation Rule - or rather, where is the best place to put it? Is there an advantage to putting it on the field in the table vs setting the validation rule on the...
7
3580
ak1dnar
by: ak1dnar | last post by:
Hi, I got this scripts from this URL There is Error when i submit the form. Line: 54 Error: 'document.getElementbyID(....)' is null or not an object What is this error. Complete Files
3
5959
by: Harlequin | last post by:
I must start this posing by making the point that I am NOT a VB programmer and I'm something of a Newbie to MS Access. I can program in a number of languages (Java, Javascript, PERL,PHP and TCL) but...
0
7216
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,...
0
7367
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7471
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5613
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4699
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3187
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...
0
3176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
407
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...

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.