G
Guest
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.
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.