473,786 Members | 2,447 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Twist on 'Tabbing to the next record' bug

Hi there,

I have been frustrated by the 'next record' problem when a user tabs
off the last control on a form.

I have tried a couple of the suggestions listed on the newsgroup, but
so far nothing has solved the problem in relation to my database.

I have 3 subforms on the form and serveral other controls (such as
buttons). When the final subform receives focus (a one-to-many style
relationship with the master form) I want the focus to set to the
first field on my master form.

However I've tried this so far (setfocus, invisible controls etc) the
record still either jumps to the next record, or a black new one.

Any ideas would be greatfully received.
Nov 12 '05 #1
3 2207
>I have been frustrated by the 'next record' problem when a user tabs
off the last control on a form.

I have tried a couple of the suggestions listed on the newsgroup, but
so far nothing has solved the problem in relation to my database.

I have 3 subforms on the form and serveral other controls (such as
buttons). When the final subform receives focus (a one-to-many style
relationship with the master form) I want the focus to set to the
first field on my master form.

However I've tried this so far (setfocus, invisible controls etc) the
record still either jumps to the next record, or a black new one.


Perhaps you've done this already, but be sure you have the "cycle" property of
the main form set to "current record."

HTH.

Jan

Jan Stempel
Stempel Consulting
Nov 12 '05 #2
> Perhaps you've done this already, but be sure you have the "cycle" property of
the main form set to "current record."

HTH.

Jan

Jan Stempel
Stempel Consulting


I'm afraid I've already tried that. Both form and subform Cycle
properties are set to 'Current Record'. Any other ideas?
Nov 12 '05 #3

A fairly dirty method would be:

in the first control of the subform place code in the OnExit event that
checks if the control is null or not. If it is null then set the focus
to the control on the main form you want to use.

I refer to the main form control by:

me.parent.setfo cus

and then

docmd.gotocontr ol "controlnam e"

I can't get the .setfocus to work for a named control when referring to
the parent - probably just my weak coding ability.
--
Posted via http://dbforums.com
Nov 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2300
by: Samuel Hon | last post by:
Hi I'm trying to prevent users from moving between different records in forms in Access 2000. I've turned off the record selectors and disabled the mouse wheel. I've now found that you can reach other records by tabbing through all the controls on the forms.
18
2945
by: ChadDiesel | last post by:
I appreciate the help on this group. I know I've posted a lot here the last couple of weeks, but I was thrown into a database project at my work with very little Access experience. No other employee knows anything about Access. I've searched Google Groups, and that has been a lot of help, but there are some questions that I just can't find the answer to. I'll try to take it easy on the group after this question. I have one more...
3
2223
by: Richard | last post by:
Tabbing from the first control on a form always sends me to IE's Address Bar instead of the next control, no matter how I set the TabIndex property for the controls. Why is this happening? For example, I have a simple login screen with 2 textboxes (Login ID and Password) and 2 buttons (Login and Cancel). I've set the TabIndex Property of each control, starting at 0. When I enter a login id and then press Tab, the focus goes to IE's...
0
1108
by: Mike Walters | last post by:
We are auto tabbing from one control to the next after max length is reached, but when within a groupbox tabbing remains within itself. when we are at the max length and use the backspace or Del key we tab out, any suggestions this is within our custom textbox control
5
3041
by: Sam | last post by:
I have some required fields on a form. I'm checking these fields in the Form_BeforeUpdate sub. When just clicking on the fields and then trying to go to the next record by clicking on the little arrow at the bottom of the form it works as intended (A message box pops up telling the user the field is required and sets focus to the next field in my If Else statement), but when I tab into the field (any field) the message box pops up...
6
2246
by: Doug Bell | last post by:
Hi I have a DataGrid with some hidden columns and also some read Only and some ComboBox Columns. Sandard Tabbing through the Datagrid sees the focus go to the hidden columns requiring further Tabbing to get to the desired column but it works fine stopping correctly on the ComboBox column. I have built a routine to test whether the use is Tabbing forward or back (Shift Tab) by looking at the last location, not by trapping the Keys. If
7
3241
by: turtle | last post by:
I want to find out the max value of a field on a report if the field is not hidden. I have formatting on the report and if the field doesn't meet a certain criteria then it is hidden. I want to get a max of the field for the ones that are not hidden. is this possible? TIA, KO
3
8920
by: Kalaine | last post by:
MSAccess 2003: Users tab through the data entry fields on a form, and accidently tab to the next record thereby erroneously inserting a record. What can I code in the Form_BeforeInsert to prevent the insert from happening? Private Sub Form_BeforeInsert() If MsgBox("Do you want to save the new BSR record " & Me.BSR_ID & " and all associated offers and price plan?", vbYesNo) = vbNo Then 'What can I code here to prevent the...
3
10172
by: dantebothermy | last post by:
I've encountered this problem in several applications. When the focus is on the last control on a form's tab list, one more tab brings the user to the next record (or a new record). Is there a straightforward way of preventing this? Dante
0
9492
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10360
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10108
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9960
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7510
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6744
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5397
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5532
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4064
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.