|
|
stLinkcriteria no longer working (since 2007 upgrade)
We have just upgraded to 2007 and are having a few minor problems. I've seen
similar threads online but can't find the solution exactly for us.
If I open a report then it shows the report with ALL the records.
If I open it with a button with this code, it shows ALL the records:
Dim stDocName As String
stDocName = "rCertificate"
DoCmd.OpenReport stDocName, acPreview
However, the moment I add stLinkcriteria it fails. This used to work under
the old Access but simply won't work now, i.e. NO records show up:
Dim stDocName As String
stDocName = "rCertificate"
stLinkCriteria = "[fIDNumber]='" & Me![fIDNumber] & "'"
DoCmd.OpenReport stDocName, acPreview, , stLinkCriteria
fIDNumber is an alphanumeric string (hence the single quotes around it).
I have no idea what is wrong with it and can only assume that it's due in
part to a change in Access.
|
|
0
|
|
|
|
Reply
|
arathra
|
6/7/2010 3:28:21 PM |
|
Well,
the code seems fine if the criteria really is a string.
Did you already tried to create a new form with the same recordsource?
Regards
Jörn
Am 07.06.2010 17:28, schrieb arathra:
> We have just upgraded to 2007 and are having a few minor problems. I've seen
> similar threads online but can't find the solution exactly for us.
>
> If I open a report then it shows the report with ALL the records.
>
> If I open it with a button with this code, it shows ALL the records:
>
> Dim stDocName As String
> stDocName = "rCertificate"
> DoCmd.OpenReport stDocName, acPreview
>
> However, the moment I add stLinkcriteria it fails. This used to work under
> the old Access but simply won't work now, i.e. NO records show up:
>
> Dim stDocName As String
> stDocName = "rCertificate"
> stLinkCriteria = "[fIDNumber]='"& Me![fIDNumber]& "'"
> DoCmd.OpenReport stDocName, acPreview, , stLinkCriteria
>
> fIDNumber is an alphanumeric string (hence the single quotes around it).
>
> I have no idea what is wrong with it and can only assume that it's due in
> part to a change in Access.
>
|
|
0
|
|
|
|
Reply
|
UTF
|
6/7/2010 3:37:00 PM
|
|
|
1 Replies
528 Views
(page loaded in 0.062 seconds)
Similiar Articles: PageSetup properties keep changing - microsoft.public.access ...stLinkcriteria no longer working (since 2007 upgrade) DataBase Previous Discussion: PageSetup properties keep changing microsoft.public.access.reportsstLinkcriteria no longer working (since 2007 upgrade) arathra 1 360 We have just upgraded to 2007 and are having a few minor problems. I've seen similar threads online but ... Upgrade from 2003 to 2007 - microsoft.public.outlook.general ...Since the upgrade, it is still working, but I can't send the ... In fact, he no longer works at Microsoft ... VBA referencing disappears with 2007 upgrade ... Outlook 7 does not connect to exchange after Windows 7 upgrade ...Since upgrading to ... Outlook 2007 Email ... Sync Issues After Exchange 2010 Upgrade ... 2007 XP SP3 stopped working after Win 7 upgrade ... ... the upgrade I am no longer ... Need to change Data Entry to "No" - microsoft.public ...I need it to revert back to Yes since I access ... form data entry to yes, the texbox(s) are no longer ... Work From Home Data Entry Jobs No need to pay for Work from home ... Mouse snap-to setting no longer works in Office 2010 - microsoft ...Can no longer draw shapes since upgrade to PPT 2007 - microsoft ... Mouse snap-to setting no longer works in Office 2010 - microsoft ..... powerpoint ..... the remote no ... Outlook Connector Not Working.... - microsoft.public.outlook ...... used it on OL 2003, I've been using it on OL 2007 since ... connector update when I open outlook it no longer ... 2007 Connector v14 Connector has stopped working for no ... Error:Your AutoCorrect file, C:\Users\.....\AppData\Roaming\Mic ...... Microsoft Office for small business 2007 ... Since I upgraded the To: field in Outlook no longer populates. ... but the Auto Fill still is not working ... Outlook connector prompting to upgrade - microsoft.public.outlook ...... loop resulted and Outlook 2007 can no longer ... Outlook Connector Not Working ... with my outlook 2010 and since this morning it is say there is upgrade ... 2003 documents converted to 2007, lines drawn in are misaligned ...Can no longer draw shapes since upgrade to PPT 2007 - microsoft ... The problem is simple: whenever I want ... Is there a way to convert documents written in Works(99, I think ... stLinkcriteria no longer working (since 2007 upgrade) DataBaseWe have just upgraded to 2007 and are having a few minor problems. I have seen similar threads online but cannot find the solution exactly for us. If I o stlinkcriteria syntax. multiple fields and wildcards ...I am struggling with stlinkcriteria and more than one ... 8 results in the forums (since January 2011) ... Sometimes it works, and sometimes it doesn't. On the ... Outlook 2007 Spell Checker Not Working - Help Desk Geek | Help ...... learned that my spell checker was no longer working in Outlook 2007! ... mistyped them, however, after the upgrade ... Since Outlook 2007 uses Microsoft Word for spell ... How To Activate Your Free Office 2007 to 2010 Tech Guarantee ...... 2007 no longer ... upgrade for 2010, will my product key for 2007 still work? ... since Lenovo took forever to ship me my Laptop, i no longer qualify for my Free 2010 upgrade ... Why there's no grown-up Quicken for OS X Lion | Rafe's Radar ...... 2007 will no longer work on ... which no longer runs apps written for the PowerPC architecture, as Quicken 2007 was. What's worse, if you upgrade ... have since ... 7/16/2012 6:44:39 PM
|
|
|
|
|
|
|
|
|