Re: Dynamic Function Calls
- From: Grwffyn <Grwffyn@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 27 Mar 2007 16:02:52 -0700
Marsh,
Thanx! It worked great. I used the following code in the On_Open
With Me("ctl" & intX & "_" & intY)
.OnClick = "=findDisc(" & intX & "," & intY & ")"
End With
Woody
"Marshall Barton" wrote:
Grwffyn wrote:.
This is a one-time (whenever the user wants a change to the matrix)
procedure that can only be accessed by the programmers.
The function call has to change for each button so it would be
findDisc(0,0) for the button named ctl0_0
findDisc(0,1) for the button named ctl0_1
etc.
I tried to use: "=findDisc(" & inty & "," & inty & ")" since I want each
button to have different parameters for the function.
That should work:
frm("ctl" & intx & "_" & inty) = _
"=findDisc(" & intx & "," & inty & ")"
If findDisc is in a standard module, make sure it's Public
--
Marsh
MVP [MS Access]
- References:
- Re: Dynamic Function Calls
- From: Marshall Barton
- Re: Dynamic Function Calls
- From: Grwffyn
- Re: Dynamic Function Calls
- From: Marshall Barton
- Re: Dynamic Function Calls
- Prev by Date: RE: Help to update a value in an SQL 2000 table from Access code
- Next by Date: RE: How to Reference a Property in a Linked Library - I think
- Previous by thread: Re: Dynamic Function Calls
- Next by thread: Re: Invalid SQL in VBA
- Index(es):