A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Checking for Errors



 
 
Thread Tools Display Modes
  #1  
Old September 6th, 2006, 01:24 PM posted to microsoft.public.access.forms
taylor via AccessMonster.com
external usenet poster
 
Posts: 4
Default Checking for Errors

Hi

Pleeease help!

i have a table called Teaching_Subject. It is made up of details regarding
the subject e.g. teacher name etc and a subform. the subform is called
Teaching_measure. It shows the dates to and from that the subject is being
taught.

On another form, teaching_options - the user is required to enter a Date and
select a Teaching Subject (this is a combo box - coming from teaching_subject)
. what i'd like is for their to be 'check' that see's whether the date the
user has entered in teaching_options is BEFORE the date in Teaching_Measure.
The flow of events is -

teaching_measure - teaching_subject - teaching_options

i know this information is v.basic but can anyone tell me what is the best
way to carry out this validation? e.g. creating a funtion in a module?
dlookup? im so stuck!

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200609/1

  #2  
Old September 6th, 2006, 06:02 PM posted to microsoft.public.access.forms
Barry Gilbert
external usenet poster
 
Posts: 379
Default Checking for Errors

You might be able to do this without VBA. Look at the Validation Rule
property for the Date textbox. You can put any function you like in the
property, including DLookup. The only trick is getting the criteria statement
for dlookup correct. Without knowing your field names/types, it's difficult
for us to help you build it.

Barry

"taylor via AccessMonster.com" wrote:

Hi

Pleeease help!

i have a table called Teaching_Subject. It is made up of details regarding
the subject e.g. teacher name etc and a subform. the subform is called
Teaching_measure. It shows the dates to and from that the subject is being
taught.

On another form, teaching_options - the user is required to enter a Date and
select a Teaching Subject (this is a combo box - coming from teaching_subject)
. what i'd like is for their to be 'check' that see's whether the date the
user has entered in teaching_options is BEFORE the date in Teaching_Measure.
The flow of events is -

teaching_measure - teaching_subject - teaching_options

i know this information is v.basic but can anyone tell me what is the best
way to carry out this validation? e.g. creating a funtion in a module?
dlookup? im so stuck!

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200609/1


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:12 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.