Solved

cmd button to field

Posted on 2009-07-05
4
232 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 41

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 41

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 41

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Microsoft Dynamics Roles question 4 98
Recommendation of Antivirus software for Personal Use 19 187
Format underline a range 2 76
Locks on MS Access DB not being released 9 72
Article by: Leon
Software Metering within our group of companies has always been an afterthought until auditing of software and licensing became a pain point. Orchestrator and SCCM metering gave us the answer and it was an exciting process.
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 viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

786 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