Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / March 2005

Tip: Looking for answers? Try searching our database.

stLinkCriteria

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sash - 30 Mar 2005 03:38 GMT
Can someone explain how this works?  

stLinkCriteria = "([tablename].[fieldname])=" & "'" & Me![formfield] & "'"
(is this correct for text fields?)

My undertanding is that the me![formfield] is passed to the field
tablename.fieldname on the form you are trying to open thereby opening it by
that criteria only.  

I'm trying to retrofit an application that has moved to SQL Server.  I've
got all the data I need via ODBC links and have built new queries.  This
piece (that use to work) is falling short.  

Also, what's the difference between "Access Forms Coding and "Access Forms
Coding (office.access)"?  I'm not sure what to post to.....
fredg - 30 Mar 2005 09:00 GMT
> Can someone explain how this works?  
>
[quoted text clipped - 11 lines]
> Also, what's the difference between "Access Forms Coding and "Access Forms
> Coding (office.access)"?  I'm not sure what to post to.....

stLinkCriteria = "[FieldName] = ' " & Me![formfield] & " ' "
or..
stLinkCriteria = "[FieldName]= " & Chr(34) & Me![FieldName] & Chr(34)
& " "

The spaces between the quotes are for clarity only. Remove the spaces.

Signature

Fred
Please only reply to this newsgroup.
I do not reply to personal email.

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.