I'm so sorry, but I don't understand you, I'll make is as simple as possible:
I have a simpel table. The query 'pro_gebruiker' has 1 field filtered bij
@txt.
@txt is on : [forms]![FRM_GEBRUIKER]![txtGetUserName].
the record source for FRM_1 is pro_gebruiker, so how/where can I add the
query parameter @txt? Do I have to make a vba code that execute on an
appropriate event, that add this parameter?
Please can you explain it step by step? But if it take to much time for you,
I'll understand that!
this stupid access runtime...
thanks a lot!
> 'SomeUser' is just a placeholder for some username that presumably
> you'd want to pass into your sproc.
[quoted text clipped - 73 lines]
> >> >> >> >parameter '@Facility'.
> >> >> >> >Thanks,
Tom van Stiphout - 14 Jan 2008 13:48 GMT
You may have to read up a bit on how to call sprocs. @txt is an
argument, but you don't have to specify it. So these are equivalent:
exec dbo.PRO_GEBRUIKER 'SomeUser'
exec dbo.PRO_GEBRUIKER @txt='SomeUser'
Yes, as I wrote, you have to write some VBA to set the RecordSource.
You write this code in "...the appropriate event...". Something like:
Me.RecordSource = "exec dbo.PRO_GEBRUIKER '" &
[forms]![FRM_GEBRUIKER]![txtGetUserName] & "'"
That's all I have to say about this.
-Tom.
>I'm so sorry, but I don't understand you, I'll make is as simple as possible:
>I have a simpel table. The query 'pro_gebruiker' has 1 field filtered bij
[quoted text clipped - 86 lines]
>> >> >> >> >parameter '@Facility'.
>> >> >> >> >Thanks,
korsakow - 15 Jan 2008 22:49 GMT
Super! It works great! THANKS A LOT!!
can you als give me an example of the code if i have multiple parameters?
example one parameter: Me.RecordSource = "exec dbo.PRO_GEBRUIKER '"
&[forms]![FRM_GEBRUIKER]![txtGetUserName] & "'"
> You may have to read up a bit on how to call sprocs. @txt is an
> argument, but you don't have to specify it. So these are equivalent:
[quoted text clipped - 100 lines]
> >> >> >> >> >parameter '@Facility'.
> >> >> >> >> >Thanks,