![]() |
| ||
| ACCESS - Need help passing a string between forms Hi Folks, I'm trying to pass a string between two different forms in ACCESS with code, and I'm having some difficulty tracking down the proper way to do this. Assistance in completing this task is greatly appreciated.. Thanks in advance! - Jordan Here's what I want to accomplish: Form 1: is a text input box. Click a button to launch Form 2 Form 2: Click a button to take text from several input boxes and concatenate in one variable, then pass (or store) the variable for retrevial in Form 1 Form 1: Insert text from variable at cursor in text box.. Here's what I've got so far: Form 1: Option Explicit Form 2: Option Explicit |
| ||
| Re: ACCESS - Need help passing a string between forms 1 Attachment(s) Here's one I made earlier! This may give you an idea of a different way of going about it. Cheers Tony |
| ||
| Re: ACCESS - Need help passing a string between forms Quote:
Thanks a bunch Tony, I've had a look at it this evening, and I'm still trying to make it work.. Is it possible for me to use this method to transfer the contents of a variable? I've tried doing this with no result.. Also, if anyone has any thoughts about how I'd paste the resulting text (from a variable) at the cursor, I'd muchly appreciate.. (I've done away with your WITH statement, because I only want to transfer the variable containing the concatenated text. ) frmCJAJournaL.txtCJALinkTest.Text = strFinalLink On the original form, I've tried to drop it into a text box and a message box with no result and I'm really not sure how to handle this.. Your thoughts are appreciated. Thanks again, and sorry for the late reply, I've been out of town working, and haven't been checking email! J |
| ||
| Re: ACCESS - Need help passing a string between forms Modify this line As shown below and it passes the variable contents.... .addrb1 = strDocName I am not sure what you mean? >>>how I'd paste the resulting text (from a variable) at the cursor<<< do you mean paste the contents of the clipboard? If you do, this is possible with code. btw I only got your message this morning 20 November 2006, there appears to be a considerable delay on this web site for sending out messages! thought you should know. |
| All times are GMT -4. The time now is 1:42 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC