Re: Pass Value from Textbox on Form to VBA Code
- From: ryguy7272 <ryguy7272@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 3 Jan 2009 11:26:05 -0800
Makes perfect sense!! Thanks again Chris!!!
Ryan---
--
RyGuy
"Chris O'C via AccessMonster.com" wrote:
To reference a textbox control on an open form from another form or a module,.
use this syntax:
Set MyRS = MyDB.OpenRecordset(Forms!formname.textboxname)
Chris
ryguy7272 wrote:
Thank you very much Chris! This is pretty much what I was looking for. I
actually had an error at first, and realized that the "ME" keyword only works
for the "code behind forms" modules. I moved my code to the Form and it
worked great. Before this, the code was in a Module. For edification
purposes, how would I have to change the code to get the Form to reference
the code, and all related controls, in a Module?
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-modules/200901/1
- References:
- Pass Value from Textbox on Form to VBA Code
- From: ryguy7272
- Re: Pass Value from Textbox on Form to VBA Code
- From: Chris O'C via AccessMonster.com
- Re: Pass Value from Textbox on Form to VBA Code
- From: ryguy7272
- Re: Pass Value from Textbox on Form to VBA Code
- From: Chris O'C via AccessMonster.com
- Pass Value from Textbox on Form to VBA Code
- Prev by Date: check and act on the number of open connections
- Next by Date: RE: >> currentDb access.application
- Previous by thread: Re: Pass Value from Textbox on Form to VBA Code
- Next by thread: Corrupted VBA
- Index(es):
Relevant Pages
|