Re: pass arguments to function
- From: John Nurick <j.mapSoN.nurick@xxxxxxxxxxxxxx>
- Date: Sun, 15 May 2005 07:11:22 +0100
VB syntax is funny. Normally you mustn't use parentheses round the
argument list of a sub procedure. Try
QuickSearch Me.ID, "vwSMKPatientLookUp", "nm"
This asssumes Me.ID is a control or field on the form and the other two
arguments are string literals. If they're variables, omit the quotes.
On Sat, 14 May 2005 10:09:13 -0700, "smk23"
<smk23@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>I am passing values for search criteria, query and sort order for the query
>via this code:
>
>Public Sub QuickSearch(strSearch As String, qry As String, ord As String)
>
>When I try to pass values to the function using this line, I get a syntax
>error.
>
> QuickSearch("Me.ID", "vwSMKPatientLookUp", "nm")
>
>The message says there is a "=" sign missing. I've tried it with and without
>the quote marks. Me.ID is a string value the user types in.
>
>Thanks for looking at this.
>
>sam
--
John Nurick [Microsoft Access MVP]
Please respond in the newgroup and not by email.
.
- Follow-Ups:
- Re: pass arguments to function
- From: Klatuu
- Re: pass arguments to function
- References:
- pass arguments to function
- From: smk23
- pass arguments to function
- Prev by Date: Re: Roman Numerals
- Next by Date: Re: sql character
- Previous by thread: Re: pass arguments to function
- Next by thread: Re: pass arguments to function
- Index(es):
Relevant Pages
|