UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Requery Event, Office 2007    
 
   
jsmith0211513
post Apr 8 2011, 01:57 PM
Post #1

New Member
Posts: 14



I have a form with a drop down box, when something is selected from the box I have a requery event occur in the AfterUpdate event to refresh data in a subform. However, whenever this event occurs I am getting a Run Time error 3314 saying you must enter a valued in the [date field]. There are other fields that a user needs to fill in after the drop down box, and each of these fields is required in the table.
Go to the top of the page
 
+
mike60smart
post Apr 8 2011, 02:00 PM
Post #2

UtterAccess VIP
Posts: 8,469
From: Dunbar,Scotland



Hi

I would imagine that you need to change the way you verify the data

In your table you would remove/change the Required option to NO

Then on your Form you would have some VBA to prompt the user for data to be entered in the required fields on Close of the Form
Go to the top of the page
 
+
missinglinq
post Apr 9 2011, 10:05 AM
Post #3

UtterAccess Ruler
Posts: 2,659



Actually this kind of validation really should be done in the Form_BeforeUpdate event.

I'm unclear as to why you need to Requery the subform simply because you've added a piece of data to the current record.

Linq ;0)>

This post has been edited by missinglinq: Apr 9 2011, 10:11 AM
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 22nd May 2013 - 04:18 PM