?
Solved

cmd button to field

Posted on 2009-07-05
4
Medium Priority
?
238 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
[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
  • 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 375 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

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

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

Lync meeting or Lync conferencing is what many organizations would like to deploy to allow them save money. But companies are now giving up for various reasons, one of which is that they cannot join external meetings (non-federated company meetings)…
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

752 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