473,326 Members | 2,010 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Retrieving a value from another form

Hello. I am using vb.net.

There are two forms in my program, 'base' and 'editor'.
In the form 'base', there is a string varible called 'user'.
How can I copy this piece of information to the form 'editor'?
Thanks.

--
Xero

http://www.chezjeff.net
My personal web portal
Nov 21 '05 #1
3 932
"Xero" <jeff_@_chezjeff_._net(remove_underscores_and_this )> schrieb:
There are two forms in my program, 'base' and 'editor'.
In the form 'base', there is a string varible called 'user'.
How can I copy this piece of information to the form 'editor'?


Did you already take a look at this group's archive?

<URL:http://groups.google.de/groups?q=lan...r+form+-%22MS+
Access%22>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #2
"Xero" <jeff_@_chezjeff_._net(remove_underscores_and_this )> schrieb:
There are two forms in my program, 'base' and 'editor'.
In the form 'base', there is a string varible called 'user'.
How can I copy this piece of information to the form 'editor'?


Did you already take a look at this group's archive?

<URL:http://groups.google.de/groups?q=lan...r+form+-%22MS+
Access%22>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #3
'declare your string variable user in for "base"
Public userName As String
'in the code behind for form 'Base" and before launching "Editor" form

Dim frmEditor1 As New frmEditor

frmEditor1.userName = userName

frmEditor1.ShowDialog()

Note that you have to define the variable username as public in the "editor"
form too.

I hope this will give you a hint. There are other ways of doing it too, but
I believe this serves the purpose too.

"Xero" <jeff_@_chezjeff_._net(remove_underscores_and_this )> wrote in message
news:8A**********************************@microsof t.com...
Hello. I am using vb.net.

There are two forms in my program, 'base' and 'editor'.
In the form 'base', there is a string varible called 'user'.
How can I copy this piece of information to the form 'editor'?
Thanks.

--
Xero

http://www.chezjeff.net
My personal web portal

Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Don | last post by:
How do I retrieve the full path (C:\.....filename) of a file uploaded to a php script on the server. I think $_FILES will only provide 'name', which is only the filename itself. Thanks, Don ...
1
by: Chris Shipley | last post by:
I am trying to present a list of links on a page (Form) where each link opens a different picture gallery. I have the Form page which contains the links, a Gallery page, and several include files....
6
by: Dave Hopper | last post by:
Hi I am using the following SQL to retrieve a value in a list box using a unique ID held in the list box call cntID. The list box is used on an order form to list appointments that have been...
5
by: aniket_sp | last post by:
i am using a data adapter and a dataset for filling and retrieving data into .mdb database. following is the code..... for the form load event Dim dc(0) As DataColumn Try If...
8
by: Chad | last post by:
To anyone who is smarter than I am when it comes to WMI: Here is what I am trying to do: 1) Detect a USB pen drive when it is inserted 2) Retrieve the drive letter of the pen drive 3) Check...
10
by: Girish | last post by:
Hi Everyone, I am passing a form to a php script for further processing. I am able to retrieve the last value set for that given form variable using $variable=$_REQUEST;
2
by: 4Ankit | last post by:
hello all, i am having some difficulty retrieving information from my form. I want to add content in my table but the content i want to add to the table is what the user inputs in my form. ...
10
by: shanmukhi | last post by:
hi all in jsp i created a combo box and i written a java script to select values from combo box. when i select a value from combo box it should go to the another jsp page for that i passed...
6
by: ReubenPatterson | last post by:
Hi, this is my first attempt to create variables to assign a value, so thanks for any suggestions. I have a field in a form I'd like to match a substring of to another table and insert. The...
0
bmallett
by: bmallett | last post by:
First off, i would like to thank everyone for any and all help with this. That being said, I am having a problem retrieving/posting my dynamic form data. I have a form that has multiple options...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.