Solved

DBGrid. SetFocus on column 3

Posted on 1998-11-19
3
406 Views
Last Modified: 2013-12-25
How does one set focus on a particular column on a database grid control.  Action = press opt button 1
               Result = set focus dbgrid column 3
0
Comment
Question by:RUSTY
  • 2
3 Comments
 

Author Comment

by:RUSTY
ID: 1497734
Adjusted points to 30
0
 

Accepted Solution

by:
GeoffS earned 30 total points
ID: 1497735
You just set the col attribute of the dbgrid control.

dbgMyGrid.SetFocus 'set focus back to the grid
dbgMyGrid.col = 3  'make column 3 the current column

works for me !




0
 

Author Comment

by:RUSTY
ID: 1497736
'Course.  Thank you!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

707 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

20 Experts available now in Live!

Get 1:1 Help Now