473,326 Members | 2,113 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,326 software developers and data experts.

Lookup Date in Another Table

fak
I have a workorder entry form. There is a table that contains
workorder information and another table that contains work dates that
are closed (fully booked). When the workorder form is being filled
in, I need the workorder date field to check if it is a "closed" date
(one listed in the other table). I was trying to use an AfterUpdate
on the workorder date, but I am uncertain how to lookup that field in
the other table and not allow work to be entered. The fields are both
date fields. The lookup or closed date table contains only the date
field and nothing else. Any ideas?
Nov 12 '05 #1
1 4684
Suspect the problem is with ?DLookup("ClosedDate","ClosedDates","ClosedDate
= " & #1/09/2003) is that the date in the table will have, but probably not
show some additional hours, minutes and seconds
Try DFirst("ClosedDate","ClosedDates","ClosedDate > " & #1/09/2003) and
check if the returned date is equal to your entry date. ( You may have to
use the DateDiff Function and check that the difference is < 1 day)

Phil
news:2f**************************@posting.google.c om...
I have a workorder entry form. There is a table that contains
workorder information and another table that contains work dates that
are closed (fully booked). When the workorder form is being filled
in, I need the workorder date field to check if it is a "closed" date
(one listed in the other table). I was trying to use an AfterUpdate
on the workorder date, but I am uncertain how to lookup that field in
the other table and not allow work to be entered. The fields are both
date fields. The lookup or closed date table contains only the date
field and nothing else. Any ideas?

Nov 12 '05 #2

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

Similar topics

3
by: my-wings | last post by:
I've been reading about how evil Lookup fields in tables are, but I've got to be missing something really basic. I know this subject has been covered before, because I've just spent an hour or two...
1
by: Zachary Turner | last post by:
I want to make a Lookup Field based on another Lookup field. In other words, I have this table A with two fields: ID and Name, where ID is an Autonumber and Name is a friendly name. Then I have a...
3
by: google | last post by:
I have a database with four table. In one of the tables, I use about five lookup fields to get populate their dropdown list. I have read that lookup fields are really bad and may cause problems...
4
by: jon f kaminsky | last post by:
Hi- I've seen this problem discussed a jillion times but I cannot seem to implement any advice that makes it work. I am porting a large project from VB6 to .NET. The issue is using the combo box...
7
by: Juris Krumins | last post by:
I have a problem with postgresql tables. periodicaly, I would say frequently about 5-10 time per hour i have such errors in my server log file: 2004-04-14 12:23:32 ERROR: cache lookup of...
3
by: jim.murphy | last post by:
I am not sure If I can do this with a lookup, but what I would like to do is perhaps use lookup to retrieve a control date from an unassociated table to control what date is entered in another...
1
by: Beeker | last post by:
I have a table called 'RawData' that collects production data. We run a report on this data everyday to see the performance of each employee. I have another table called 'tblStandards' with...
5
by: Andrus | last post by:
I'm creating a database Winforms application using VCS Express 2005 I have some large lookup tables (may be up to 500000 records) which contains name and id and are stored in sql server. I...
1
by: RXRPHRICH | last post by:
Hi I Thought I Was Fairly Savvy At Creating A Lookup Vba. I Guess My Brain Has A Block. Here Are My Parameters: Table #1 - Transaction Date Field And Price Field .Each Record Is A Unique...
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: 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: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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.