I was unaware until recently you can convert macros to visual basic by going to form/design, add the desired macro to click property of text box or button, choose tools/macro/convert form's macros to visual basic. Once it's converted you can look at the code in the event procedure and copy/paste/modify as needed. Now I often create macros just to convert them and find out the code behind them, the convert function has added flexibility to working with forms. For me, it's worth the conversion process even if I end up blowing away the button and original code on the form. hth, Cathy "Peter Chiavaro" <kp@xxxxxxxx> To: <mso@xxxxxxxxxxxxx> Sent by: mso-bounce@freelist cc: s.org 06/23/2004 10:39 AM Subject: [mso] Re: Access - Expression in Macro Argument Please respond to (Disregard) mso ..... -----Original Message----- ]On Behalf Of Green Sent: Wednesday, June 23, 2004 6:03 AM Subject: [mso] Re: Access - Expression in Macro Argument (Disregard) er... what did you find Peter? Lisa I found that sometimes I'm really stupid! (sometimes) LOL. I had a macro action that was crashing BEFORE the one I thought was = crashing. As a result, I kept adjusting the one I thought was faulty but = was not. (I was in a loop for 4 hours. It ruined my whole day) That's the problem with macros... hard to debug. I wish I were younger; I'd go to school and learn how to code. I am so = jealous of those code dweebs, you have no idea. I want to choke them. Using a Macro to change the record source of a form. Action: SetValue The correct syntax: Item: [Forms]![AnyForm].[RecordSource] Expression: "[AnyTable]" I did this many times to change the record source to a report, but only = a few times for a form. Instead of writing 10,000 different reports, you can simply use the same = report and just change the record source. (if need be) More Later. Peter C. Stuart, FL=20 ----------------------------------------------------------------------------------------------------- The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you are not the intended recipient of this message you are hereby notified that any use, review, retransmission, dissemination, distribution, reproduction or any action taken in reliance upon this message is prohibited. If you received this in error, please contact the sender and delete the material from any computer. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of the company. ------------------------------------------------------------------------------------------------------- ************************************************************* You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or MicrosoftOffice@xxxxxxxxxxxxxxxx To send mail to the group, simply address it to mso@xxxxxxxxxxxxx To Unsubscribe from this group, send an email to mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes) in the subject line. Or, visit the group's homepage and use the dropdown menu. This will also allow you to change your email settings to digest or vacation (no mail). //www.freelists.org/webpage/mso To be able to use the files section for sharing files with the group, send a request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with instructions. Once you are a member of the files group, you can go here to upload/download files: http://www.smartgroups.com/vault/msofiles *************************************************************