James,
+ So the broken database design is another thread; however, what you are dealing with is a prime example why it is so important to get the primary design correct from the start. The link to normalization is the foundation. I will also PM you my boilerplate of what I hope are useful tools and tutorials.
+ Let's take a look at:
- [Forms]![fdlgPBTSearch]![lfTestDate])
-
>
-
[Forms]![fdlgPBTSearch]![lfTestDate]));
-
Right now you are referring to only the form in a circular reference. Nothing you are doing with logicals will ever fix this issue.
- [PrimaryKey] [TestDate]
-
1 01/01/2015
-
2 01/02/2015
-
3 01/03/2015
-
4 01/04/2015
-
(...)
So in record [PK]=1 you are testing for [TestDate]>[TestDate] == [01/01/2015] > [01/01/2015] = false
same in [PK]=2,3,4...
The root issues are in both your parameter and your select statement. To work your way out of this I would advise you to create a simple select query (ignore append/insert etc...) Get this query to return the subset that you are after - something like this
(
Basic SQL Syntax for Access Queries )
- SELECT [tble1]![lfTestDate] AS "TestDate"
-
FROM tble1
-
WHERE [tble1]![lfTestDate]>[User Entry]);
(note the [User Entry] will popup a VERY simple input box. This is eventually where your form reference
might end up in the final query.
Once you have the select query working (change "tble1" etc... to match your database) then you can automate using the form to return the records you are after. Once that is working - then use it to append to your table (which isn't the best practice for most things)