Solved

dbgrid cell button

Posted on 2001-06-14
2
269 Views
Last Modified: 2006-11-17
I'm using VB5(SP3)

I have a 5 Row 7 Column dbgrid on form1
The grid has the cell button enabled for column 3

I want to click on the button in Row 4 Column 3 and launch form2.

I then want to click a command button on form2 to send the value of a textbox to Row 4 Column 3 on form1

I have no Idea how to use the cell button to launch form2 or update the cell on form1 from form2

Can anyone help?
0
Comment
Question by:backflash
2 Comments
 
LVL 43

Accepted Solution

by:
TimCottee earned 100 total points
ID: 6190819
Private Sub DBGrid1_ButtonClick(ByVal ColIndex As Integer)
    If DBGrid1.Row = 4 And ColIndex = 3 Then form2.Show
End Sub

And

Private Sub Command1_Click()
    Form1.DBGrid1.Text = Text1.Text
    Unload Me
End Sub

Should show you how you could achieve this!

Hope it helps.
0
 

Author Comment

by:backflash
ID: 6191001
Works like a charm

Thanks Tim
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Problem to skip loop 6 55
Recommendation vb6 to vb.net or others 14 114
clicking a shape in a frame array vb6 3 41
Set email body to html using vbscript 6 28
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now