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 / December 2005

Tip: Looking for answers? Try searching our database.

use part of a field as a parameter

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mike - 13 Dec 2005 11:26 GMT
I am trying to trigger a messagebox if a user enters a name which may refer
to two or more different customers from a combo box on the input form.
(CustID is primary key) . I tried to run query on the after update event, use
the Name as a parameter( "*"&[parameter]&"*" ) then use movelast and
recordcount to see how many records are in the query. trouble is if the name
is similar it doesn't work (St John's Wrexham) (St Johns Service Station) (St
Johns garage) how can I extract say the first 7 letters from the name to use
as the parameter.
Klatuu - 13 Dec 2005 13:19 GMT
"*" & Left([parameter], 7) & "*"

> I am trying to trigger a messagebox if a user enters a name which may refer
> to two or more different customers from a combo box on the input form.
[quoted text clipped - 4 lines]
> Johns garage) how can I extract say the first 7 letters from the name to use
> as the parameter.
mike - 13 Dec 2005 13:31 GMT
Thanks very much most appreciated

> "*" & Left([parameter], 7) & "*"
>
[quoted text clipped - 6 lines]
> > Johns garage) how can I extract say the first 7 letters from the name to use
> > as the parameter.
 
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.