Solved

dbgrid cell button

Posted on 2001-06-14
2
267 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

759 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

22 Experts available now in Live!

Get 1:1 Help Now