473,466 Members | 1,619 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

vb.net with access - multi same form

3 New Member
Can I save values from the multi same form? How?

Sample:

on this form - one datagridview, one textbox, one combobox.

Thanks.
Mar 26 '10 #1
3 2107
CroCrew
564 Recognized Expert Contributor
Hello needanswer,

I am guessing that everyone is having a hard time understanding your question because there have been 73 views and no responses. I am going to try to provide an answer to what I believe you’re asking. If I am way off please post a reply and add more detail to your question in what you’re trying to do.

I think you’re asking if you can save values from multiple controls within a form on a post back. An example would be:

Expand|Select|Wrap|Line Numbers
  1. <form id="form1" runat="server">
  2.     <div>
  3.         <asp:TextBox ID="TextBox1" runat="server" />
  4.         <asp:DropDownList ID="DropDownList1" runat="server">
  5.             <asp:ListItem Text="First Option" Value="1" />
  6.             <asp:ListItem Text="Second Option" Value="2" />
  7.         </asp:DropDownList>
  8.         <asp:Button ID="Button1" runat="server" Text="Submit" />
  9.     </div>
  10. </form>
  11.  

If I am correct in what you’re asking for help with then using the above example you could do something like this:

Expand|Select|Wrap|Line Numbers
  1.     Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
  2.         Dim TextBoxValueToSave As String = TextBox1.Text
  3.         Dim DropDownListValueToSave As String = DropDownList1.SelectedItem.Value
  4.     End Sub
  5.  
Here you can see that two controls within a form are save within variables that can be used how ever you with to use them.

Hope this helps,
CroCrew~
Apr 5 '10 #2
CroCrew
564 Recognized Expert Contributor
Hello needanswer,

It is against forum rules to post a Visitor Message or PM to a moderator or expert directly about technical questions for a number of reasons but mainly because the moderator or expert might not know how to help you.

Also by receiving help on the forums the whole world can see how you've solved your problem and this could help others facing the same issues; whereas receiving help through PM's or Visitor Messages keeps this information private/hidden from the public eye.

Please review the posting guidelines especially the section on Do not PM Experts, Moderators or Administrators about questions for more information as to why this is unacceptable.

I'll be happy to help you in the thread that you have started regarding your problem.


CroCrew~

Again, thanks your reply.
Your answer is very close my question, but if this form with a datagridview, we cannot save the datagridview values with form?

I think, multi same form with vb.net is not the purpose to save the values with form.
Apr 6 '10 #3
Frinavale
9,735 Recognized Expert Moderator Expert
Is this an ASP.NET application or a Windows Desktop application?
When you are referring to a "form", are you talking about a Windows Form, and Access Form, or a Web Form?
Apr 13 '10 #4

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

Similar topics

6
by: Hamed | last post by:
Hello I have employed as a developer in a software company that its team uses FoxPro / VB 6.0 / VC++ 6.0 as the developing tools and newly is going to migrate to VS.NET. There is a project...
13
by: bill | last post by:
I am trying to convince a client that dotNet is preferable to an Access project (ADP/ADE). This client currently has a large, pure Access MDB solution with 30+ users, which needs to be upgraded....
3
by: canigou9 (remove your socks to reply) | last post by:
(cross posted - comp.databases.ms-access, microsoft.public.access) Hello folks - this is my first post here, after a short lurk. I have written an application in Access2002 for a friend's...
20
by: Olav.NET | last post by:
I am a .NET/C++ developer who is supposed to do some work with Access. I do not know much about it except for the DB part. Questions: *1* I am looking for INTENSIVE books to get quickly up to...
4
by: Daylor | last post by:
hi. i have multi thread application in vb.net is there a way NET support, so i can mark the class , to be access only for 1 thread each time ? if there is , small sytax sample will help ...
0
by: kmeezy | last post by:
Hi all, As a learning project I would like to recreate a project that I made in MS Access within ASP.NET. Could someone help by commenting on the correctness of my statements below and also by...
7
by: irfanali | last post by:
Hallo All, I m trying to create a Multi User Data Program on Access, where my team members would input data on a daily basis. Well the Problems start now : - How do i create a Multi-user...
27
by: SQL Learner | last post by:
Hi all, I have an Access db with two large tables - 3,100,000 (tblA) and 7,000 (tblB) records. I created a select query using Inner Join by partial matching two fields (X from tblA and Y from...
7
by: Icarus | last post by:
I have a Access 2000 database that I am opening with Access 2007. When I open the datbase in Access 2000 or Access 2003, the database runs as expected. In Access 2007 my main form opens, a...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...
0
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.