Solved

dbgrid cell button

Posted on 2001-06-14
2
273 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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 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…

730 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