johnsqftwr
Registered User.
- Local time
- Today, 07:35
- Joined
- Jul 19, 2004
- Messages
- 29
The following works for 15/09/2011, 22/09/2011. 29/09/2011
It does not work for 06/10/2011
Both source tables are dates with the same format, but somehow it thinks that the 2 matching 06/10/2011 are different.
I am tearing my hair out with this one and hopefully someone can let me have some VBA to force Date and Me!Date to be the same.
Many thanks
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmStatsUpdate"
stLinkCriteria = "[Date]= #" & Me![Date] & "#"
DoCmd.OpenForm stDocName, , , stLinkCriteria
It does not work for 06/10/2011
Both source tables are dates with the same format, but somehow it thinks that the 2 matching 06/10/2011 are different.
I am tearing my hair out with this one and hopefully someone can let me have some VBA to force Date and Me!Date to be the same.
Many thanks
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmStatsUpdate"
stLinkCriteria = "[Date]= #" & Me![Date] & "#"
DoCmd.OpenForm stDocName, , , stLinkCriteria