473,324 Members | 2,239 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Validation of sub form records

374 256MB
Hi all,

I have a subform on my main form which displays as a single form.

Using custom navigation buttons I move through the records in the subform related to it's parent.

I can do basic form validation fine and validate that boxes within the subform are filled in correctly. However how do I set up the following validation:

Within subfrmAction each record has a value entered for "txtActionCompletedDate".

So basically if a record exists within the sub form I want to check txtActionCompletedDate has a date. The catch for me, is there are x amount of records how do I check all records have txtCostFig filled in one go.

Edit:

I found a similar post and I think missinglinq asked why the validation was not done prior to record save.

My scenario is that an action will be assigned to a person. Then the manager will come back close to the proposed end date of the action and assign the actual completed date.

Validation will then be used to enable a button to be clicked if all actions have a completed date to recommend the overall project to be closed. If a completed date is not entered in a record then the button will be disabled until it is added.
Aug 2 '10 #1

✓ answered by munkee

I have given dao a bit of a go and used the find first to find the records associated in the subform against th emain form ID number and then test the fields to find the first null field. If no nulls are found then the button will fire the event if not the button will error and tell the user why.

1 1873
munkee
374 256MB
I have given dao a bit of a go and used the find first to find the records associated in the subform against th emain form ID number and then test the fields to find the first null field. If no nulls are found then the button will fire the event if not the button will error and tell the user why.
Aug 2 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: TG | last post by:
I have a validation form that must behave differently based on the results of a PHP validation check. I have a post command at the top of my form that calls itself. I don't leave the form when...
5
by: Red | last post by:
Hi, I'm not very familiar with Javascript. I usually leave that kind of stuff up to Dreamweaver, but i'm starting to need a little more than it can offer. I have an asp page which creates a...
10
by: iam247 | last post by:
Hi In my prototype asp page (with no javascript and no password validation, I have a registration form with the following action: <form name="form" method="post" action="RegDetails.asp"> ...
2
by: Todd | last post by:
Hi. I want to sort the records on my form (using either a continuous form or a datasheet) by the unbound "description" column in a combo box on the form (or in the datasheet.) Here's a rough...
4
by: Jim | last post by:
I have a form that is using a query for the control source. The query put the data in order of TOP 20. I've added an extra textbox in the form and want to be able to automatically rank the records...
1
by: OriginalBrownster | last post by:
Hi there: I just had a quick thought of something that might be useful to me when creating my web app and I wanted some help on the idea; since this group has been helpful in the past. in my...
9
by: jasonchan | last post by:
im fairly new at javascript but i need to write a script for a project and don't know where to begin. basically it involves form validation... i guess here's the breakdown. I have created a form...
4
by: Michiel Rapati-Kekkonen | last post by:
Is there maybe a trick so that when I make a continuous form, the records fit exactly? Now, without such trick, often the last visible record shows only half and I have to stretch the form...
6
by: BEETHOVEN | last post by:
I have an option group called Issue_Type on my main form F1_Member_Demographics_Main. When I select one of the 3 options on the main form from the option group Issue_Type I want to limit the sub...
1
by: xraive | last post by:
I have a problem with this. Currently I am trying Allen's code and i am not successful. Current Design Table1 (Main Form) TravelID (PK) ApprovedBY EntreredBy BudgetCode ExpenseCode
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.