Solved

cmd button to field

Posted on 2009-07-05
4
235 Views
Last Modified: 2013-11-24
I have a database  called TOEWYS with table  TOEWYS with field HKNR and Form called INVOER.
How do I make cmd button on form INVOER
 to go to new record  
to the field HKNR
on the form INVOER ?
0
Comment
Question by:WIETIE
  • 3
4 Comments
 
LVL 42

Expert Comment

by:pcelba
ID: 24780861
You just have to add Button to your form (in Design mode) and in the button's On Click event you have to call macro GoToRecord with record parameter = New and then you have to call macro GoToControl with parameter containing the name of your field (HKNR).

Hope you have Access 2007 but it should be very similar in older versions.
0
 
LVL 42

Accepted Solution

by:
pcelba earned 125 total points
ID: 24780880
Access 2007 has this button predefined in Command Button Wizard (Category "Record operations", Action "Add new record") you just have to add GoToControl macro into On Click event.
0
 

Author Comment

by:WIETIE
ID: 24782470
I have Access 2003, Can you please explain in more detail the parameter bit for field

WIETIE
0
 
LVL 42

Expert Comment

by:pcelba
ID: 24785249
The answer is in the question having higher point value :-) :
http://www.experts-exchange.com/Microsoft/Applications/dBase/Q_24545567.html 

The process of button adding and its click event definition is slightly different in Access 2003 but very similar to Access 2007.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone 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

The canonical version of this article is on my web site here: http://iconoun.com/articles/collisions/ A companion presentation is available here: http://iconoun.com/articles/collisions/Unicode_Presentation.pdf
User Beware!  This is a rather permanent solution to removing your email from an exchange server.  The only way to truly go back is to have your exchange administrator restore your mailbox from backups.  This is usually the option of last resort.  A…
Viewers will learn the different options available in the Backstage view in Excel 2013.
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…

789 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