473,670 Members | 2,295 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to access this array in the main form when I press a SAVE button

22 New Member
Can I send a message in continuation with this one?

I have a sub form with that creates an array in the following manner:

Expand|Select|Wrap|Line Numbers
  1. Dim i As Integer
  2. Dim Arr1() As String
  3. Private Sub cbo_hdr_memid_Change()
  4. i = i + 1
  5. ReDim Preserve Arr1(1 To i)
  6. Arr1(i) = Me.cbo_hdr_memid.Text
  7. End Sub
How would I be able to access this array in the main form when I press a SAVE button?
Jun 21 '10 #1
1 1379
ADezii
8,834 Recognized Expert Expert
@p4willi
How would I be able to access this array in the main form when I press a SAVE button?
Pass the Array to where?
Jun 22 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1397
by: Tai | last post by:
Hi all I have 2 forms, frmMain and frmChild. In frmMain, I declare a variable f as frmChid then Call f.ShowDialog() I want when the child form is minimized, the Main form is also minimized automatically. I tried some way to call frmMain.WindowState = FormWindowState.Minimized. The result is my 2 forms are minimized but the side effect is the Child form is gone. Dim f As New frmChild f.ShowDialog()
0
1140
by: Bruna | last post by:
I'm working in vb.net 2005, and in a project we're working, we have a main form and a few other forms with different settings. One of them is User setting form with 3 settings, and one of them is application language with 2 values(languages). When I choose one language and click OK, I have to exit the application and enter again so that wanted language occur. What I want is - that event happen imediatelly(the main form switch to choosen...
3
1319
by: deepalik | last post by:
I want to create a form in JSP that will accept the purchase order number and other details. Then i want to proceed to enter the list of items until I press the close button. Please Help me to solve this problem
6
6018
by: Otis492 | last post by:
Hello, I have been struggling with this for a while. I am working on a rather simple database for claims in Access 2003. I have a table called claims that has a primary key field called Claim #. It is linked to a table called parts. The idea is that a claim can be filed for multiple damaged parts. In other words a claim # could have 0 to several damaged parts. My problem lies with the form that I have created. It is a main form with a...
3
1458
by: Shaileshsharma | last post by:
Hi, I want when my cursor is in textbox and i press tab button a message will display or when i press tab the text in text box should save in database.Kindly help me how it is possible. shailesh Kumar
2
2008
by: DeanL | last post by:
Hi everyone, I have a subform in datasheet view that is used to display the contents of a single table. I have another subform with a query feeding it to give a count of how many particular items are in the table and wanted to ask how I go about updating the count when I delete a value from the datasheet subform without closing and reopening the form? Many thanks for any help you can offer...
0
1499
by: tilak p | last post by:
hiiiii i have a asp.net page which contains gridview after entering data to gridview and updating in gridview i have given a save button on pressing it the data in grid will be sent to save function to save in database but when i click save it shows below error Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it...
3
1540
scootaman
by: scootaman | last post by:
I have a main form for adding or changing events called Trianing Events Details. On that form there is a subform that is tied to the Start Date field of the main form. I have the form setup this way to mimic a day view in a calendar. I would like to be able to click on a start time of a record in the subform and have it show in the main form. I expect a day may come when I intering an event I may need to change the start time of one of the...
4
1236
by: Big P | last post by:
I need to update a form everytime a button is clicked. My form has more than 20 buttons. So need i to find out what is the best event to do that. I am new to VB Express and now i have the time to explore something new. Tks for your help.
0
8471
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8388
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8907
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8817
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8663
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7423
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4396
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2046
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1799
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.