473,486 Members | 1,932 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Flag future date for form completion

184 New Member
Hi all

Right, I dont know if this is possible in Access (2007) or not but here goes.

I want to create a form for a vehicle delivery where a user completes say half of it before delivery of the vehicle, set a future delivery date and then save it.

When this future date is then due, I would like Access to flag up to the user that this specific form requires completion to enter the rest of the delivery details.

Hopes this makes sense and if possible.

Thanks in advance
May 10 '07 #1
2 2101
missinglinq
3,532 Recognized Expert Specialist
I can think of two possible approaches, depending on the number of records involved. DueDate is the Delivery Date and FieldToBeCompleted is any field that would only be filled in after the DueDate has arrived. If the number of records are limited enough that the user can navigate thru them all searching for the "due" records, then this code in the FormCurrent event would do it:
Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_Current()
  2.   If (Me.DueDate <= Date) And IsNull(Me.FieldToBeCompleted)  Then
  3.     MsgBox ("This record needs to be completed!")
  4.   End If
  5. End Sub
If there are too many records for this method to be feasible, then you'd need to have a separate form that could be opened daily for completing these records.

1) Copy your current form, placing a label in the header and/or changing the background color to distinguish it from the original form so the user won't be confused as to which form they're on.

2) Copy the query the original form was based on and in the Criteria field in the Query Grid for the "DueDate" field place <= Date.

3) Set the Criteria for one of the fields that still needs to be completed to IsNull

4) Go into Form Design View of the new form and change its RecordSource to the new query

5) When this new form is opened only records whose "DueDate" is on or before the current date and whose still to be completed field is Null should show up. The "before" part is necessary in case your user should be sick or have a day off and get behind, so to speak.

Good Luck!
May 12 '07 #2
bloukopkoggelmander
184 New Member
Howzit missinglinq

Thank you very much for your reply. I will go through it in detail and see if this will work for me and then get back to you if I have any probs.

Thanks a lot
May 15 '07 #3

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

Similar topics

8
1956
by: Bob Stearns | last post by:
My client wants to disallow a birth date in the future. First I tried the obvious: ALTER TABLE IS3.ANIMALS ADD CONSTRAINT b_d_f CHECK (birth_date<=current_date) It failed because special...
3
1614
by: Lumpierbritches | last post by:
Can this be done in access by a lay person? Also, are there any tutorials for this type of addition to your applications? I'm trying to use a calendar control to set a date in the future for a to...
1
3046
by: ED | last post by:
I currently have an ODBC query that hits an Oracle database. I want to bring back records for a given month based on a job completion date in the Oracle database. I would like to have the user...
2
1962
by: asreryll | last post by:
I wish to show a future date in a table, so that I can sort and know which case is in need of a review. I can display a future date in a form but I want to see all records that are due on a certain...
26
2675
by: jshanman | last post by:
I am writing a timeline that uses Google Maps. I have a function that converts a date time to latitude coords. This function is used to draw the markers on the timeline. I need a reverse function...
6
14429
by: rohayre | last post by:
Im a long time java developer and actually have never done anything with java scripting. I'd like to write a short simple script for calculating a date in the future based on today's date and a...
8
1936
by: nishkrish | last post by:
Hi, I am new to access I created the form and report from Allen Browne's Frmwhat Date the way he has described but when i preview report it shows StartDate: name? Enddate: name? am i suppose...
2
5392
by: p.smachylo | last post by:
Hello, I am relatively new to Microsoft Access and databases in general, and have a problem - one which I think may necessitate some VBA code (or maybe just modification of the criteria section of...
7
52211
by: jmartmem | last post by:
Greetings, I have an ASP page with a form (form1) that contains a JavaScript validation function that is activated onSubmit. The function contains a series of IF statements to alert the user to...
0
7099
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
6964
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7123
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6842
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
4864
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4559
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
3069
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
1378
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
598
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.