Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 14th, 2011, 03:16 AM
Authorized User
 
Join Date: Apr 2011
Posts: 16
Thanks: 8
Thanked 2 Times in 2 Posts
Default UNBOUND to button command

I have this "unbound command" and "Button Command"

In Unbound command - its for ID Number only.

Would it be possible if i click the particular number then it would search to "Button command"? and it will appear all the details which you have searched from "unbound command"?

Please help thanks.
 
Old April 14th, 2011, 04:22 AM
gjgriffith's Avatar
Wrox Author
 
Join Date: Jul 2009
Posts: 110
Thanks: 5
Thanked 14 Times in 14 Posts
Default "Unbound Command"?

Hello Ringo,

Thanks for the note, I saw your post here, but I'm a little confused. You said:

Quote:
I have this "unbound command" and "Button Command". In Unbound command - its for ID Number only.
When you are referring to an "Unbound Command", it sounds like you are referring to an "Unbound TextBox" control, is that correct? If so, could you use the "Click()" event for the TextBox to call the "SetFocus()" method for the button, to move focus to the button. For example, here is some code to do that:

Code:
Private Sub Text2_Click()

    ' Set focus to a button control
    Me.Command4.SetFocus

End Sub
Otherwise, you could write whatever code behind the TextBox Click() event to do whatever search you need! Does this make sense and/or help? Please let me know if you still have questions!
__________________
Geoffrey L. Griffith
http://www.ImagineThought.com

Wrox Author of:
Microsoft Access 2010 24-Hour Trainer
Access 2010 Programmer's Reference
Access 2007 VBA Programmer's Reference

*** Please click the THANKS button (to the right) if this post helped you! *** ---------------------------------------------------------------------------------------------------------->
 
Old April 14th, 2011, 10:44 AM
Friend of Wrox
 
Join Date: Sep 2010
Posts: 245
Thanks: 5
Thanked 24 Times in 23 Posts
Default

Also check out he combo box control wizard. It has an option to create a combo box for finding a record. You can look at eh VBA code it creates to learn how to find a record based on an unbound control..
__________________
Boyd Trimmell aka HiTechCoach (.com)
Microsoft Access MVP Alumni 2010-2015
 
Old April 16th, 2011, 10:43 AM
Authorized User
 
Join Date: Apr 2011
Posts: 16
Thanks: 8
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by gjgriffith View Post
Hello Ringo,

Thanks for the note, I saw your post here, but I'm a little confused. You said:



When you are referring to an "Unbound Command", it sounds like you are referring to an "Unbound TextBox" control, is that correct? If so, could you use the "Click()" event for the TextBox to call the "SetFocus()" method for the button, to move focus to the button. For example, here is some code to do that:

Code:
Private Sub Text2_Click()

    ' Set focus to a button control
    Me.Command4.SetFocus

End Sub
Otherwise, you could write whatever code behind the TextBox Click() event to do whatever search you need! Does this make sense and/or help? Please let me know if you still have questions!
Thanks Sir Gj,

Please click the utube link below.. i want to make unbound similar to this command. that if you click the "Payroll ID" first then second you will click the Personal details it will come up with particular personal details of the screen based on the Payroll ID that you click. I like this presentation in utube and i want to make similar on this but i dont know some of the command. Hope you can help me thank you so much in advance

thanks

http://www.youtube.com/watch?v=_qc0l...eature=related





Similar Threads
Thread Thread Starter Forum Replies Last Post
Command button with timer [email protected] Beginning VB 6 4 October 20th, 2009 02:25 AM
'Hidden' Command Button David Mulvey Word VBA 0 January 9th, 2007 11:21 PM
Command Button Question eoghang Excel VBA 2 September 25th, 2006 08:33 PM
USING Command Button to print Worksheet alannoble Excel VBA 2 December 31st, 2004 11:17 AM
command button qry mohiddin52 Access 0 December 22nd, 2003 08:20 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.