473,383 Members | 1,997 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,383 software developers and data experts.

Opening new Form from a selected listview item (VB.NET)

1
Hi, i used in MS ACCESS 2007/2010 this code to open a new form (with a new table) when hit double click over a listview valeu, fexp, i had a listview with names and when i double click a name a had a new form with this name data. I dpn't know how to re-write it for VB.NET and i need help from anu=yone. Thanks a lot. (Ivan, Brazil)

Expand|Select|Wrap|Line Numbers
  1. Option Compare Database
  2.  
  3. Private Sub Lista31_DblClick(Cancel As Integer)
  4.  If Not IsNull(Lista31) Then
  5.       AShowRecord_Click
  6.  End If
  7. End Sub
  8.  
  9. Private Sub AShowRecord_Click()
  10. 'Find a selected record, then close the search dialog box
  11.     DoCmd.OpenForm "frm_DadosCadastrais_Iniciais", , , _
  12. "tbl1_DadosCadastrais.Nome=" & "'" & Me.Lista31.Column(1) & "'"
  13. Me.Requery
  14. DoCmd.Close acForm, "frm_Exames_DopplrObst_7dias"
  15. End Sub
  16.  
Mar 24 '12 #1
0 1610

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

Similar topics

0
by: keith | last post by:
In a ListView control (two columns), I added a few ListView items. ListView listview=new ListView(); listview.Parent=this; listview.View=View.Details; listview.Columns.Add...
4
by: Henry | last post by:
I'm trying to get the index of the top row in the display area of a listview (vb.net) by doing an api call to ListView_GetTopIndex. See code below. The call is returning a 0. The SDK doc states...
2
by: billyb | last post by:
My listview has two columns: Email Address & Email Address Type. I've figured out how to populate it, but now I'm having trouble figuring out how to properly use the SelectedItems to get at the...
4
by: Pucca | last post by:
How can I tell a mouse right clicks over a listview item that's in a container panel. I only want to display a popup menu if the user right click the mouse over an item on the Listview. I don't...
2
by: forest demon | last post by:
in a different app, i can grab the index of a ListBox, but when i try it with a listview with only one column, i'm having issues. the first line (string) below works as expected. the second line...
2
by: Beus | last post by:
I am making a small adressbook like program. I made a listview which is populated by my user data base. I want the users to be able to select their name on the list and then press the log on...
1
by: apondu | last post by:
Hi, This is Govadhan, i am a begginer for web services using c#.net. I have written a small web service where in i have created a listview item in the web service method and added some data to...
7
by: =?Utf-8?B?YnJhaW5mdWVsbWVkaWE=?= | last post by:
Can anyone point me in the direction of creating a custom listview item? I guess the other question then - is this possible? I want to create a list of listview items comprised each comprised of...
5
by: Bart Steur | last post by:
Hi, What's the best way to programmaticly select (click) another listview Item after removing the selected/focused one. using VB2005 Express. Thanks Bart
7
by: Brad Pears | last post by:
I have something strange going on - pretty sure it used to work before - and now it does not... Why does the following code not clear a combo box? Me.cboLocation.Text = String.Empty OR ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.