473,796 Members | 2,558 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

In Form View - can't get to next record. Why?

Hi. I have a friend who has a form (ok that's a lie ... it's me that
has the form) that is opened up with AllowAdditions and AllowEdits =
TRUE and the selection criteria for the form results in 2 records in the
"recordset" . The form displays one record at a time and has a
navigation control at the bottom. The number of records message says "1
of 2". Tracing the logic shows that in Form_Open, Form_Load, and
Form_Current the Cycle property of the form is 0 (which means All
Records).

So ... why can't I get to the next record by, either, using the TAB key
or the PAGE DOWN key? Basically, nothing seems to happen when either of
those keys are hit.

I use the same form to open up at a new record, and when at a new
record, the TAB key and the PAGE DOWN key on the keyboard, do work and
get me to the next new record.

Any ideas why?

Regards,
SueB

*** Sent via Developersdex http://www.developersdex.com ***
Nov 13 '05 #1
5 3840
I'm starting to get paranoid. Are my posts being ignored?

Regards,
SueB

*** Sent via Developersdex http://www.developersdex.com ***
Nov 13 '05 #2
Dear Paranoid,

Perhaps you could give a little more information about your form. What
is the recordsource of your form? Is it a table? a query? Is the form
in Single form view or Continuous form view? On the form where you can
get to the next record using the tab key, it sounds like the form is
either in Continuous view or else there is code underlying the form and
the tab key is set to select the next record (or maybe there is some tab
key property that I am not familiar with for getting to the next record
- I have to throw that in because if I don't I will be humbled).
Anyway, if you could provide some more information about your form as
above, then we could take it from there.

Rich

*** Sent via Developersdex http://www.developersdex.com ***
Nov 13 '05 #3
Rich,

Thanks for responding. It's a fine line between giving too much
information and not giving enough. Sorry about that. In any event, I
just went back to the application to test it out and get all the
information that you requested and ... GUESS WHAT ... I found the cause
of the problem (not that I totally understand).

I'll let you know, just in case you still want to know.

Form in question: frmTrialInfo
Default view: Single form in both the ADD mode and the EDIT mode ...
form opened from frmEventAdd with the following:

DoCmd.OpenForm "frmTrialIn fo", _
acNormal, , strSQL, intFormOpenOpti on, , _
Me!eventID & "," & strMode

1. intFormOpenOpti on is "acFormAdd" and strSQL = "" when I want to open
form with New Record

2. intFormOpenOpti on is "acFormEdit " and strSQL = "[eventID] = " &
Me!eventID when I want to open with trial records that have eventID from
frmEventAdd

The RecordSource for frmTrialInfo is tblTrials (trial records that are
tied to event records by eventID)

OpenArgs for frmTrialInfo is eventID and strMode (delimited with a
comma). strMode can be "ADD" or "EDIT".

In frmTrialsInfo Form_Load routine, I was setting Me!eventID to the
input argument eventID, unconditionally . I changed it to only do that
if strMode = "ADD". Now the TAB and PageDown key work in "EDIT" mode.
I can get to all records in the subset.

Thanks for listening/reading.
Regards,
Paranoid-no-longer
aka
SueB

*** Sent via Developersdex http://www.developersdex.com ***
Nov 13 '05 #4
Oh ... you are probably wondering why I didn't do this with subforms.
Actually, the record relationships require two subforms. And I got it
to work for "BROWSE" or display mode (updates not allowed). However,
spent weeks trying to get the parent and child forms to work by allowing
updates. I eventually gave up and went to a single form calling another
form for "the child" records. It's cumbersome (having to cascade up and
down the opening and closing of windows), I totally admit. Once, I get
this working flawlessly and get it out the door to the person who wants
it, I'll go back to work on the subforms design.

Regards,
SueB

*** Sent via Developersdex http://www.developersdex.com ***
Nov 13 '05 #5
I noticed that more times than not - a problem can be resolved by asking
a question about the problem

Rich

*** Sent via Developersdex http://www.developersdex.com ***
Nov 13 '05 #6

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

Similar topics

3
3048
by: fred14214 | last post by:
Dear Group: I have built and customized a form using the wizard to put command buttons that will move to the NEXT record or PREVIOUS record. This works, but it needs some refinement. Presently, if I am on the first record and click the PREVIOUS record button, I get some built in, generic Access message. And, if I am on the last record from the table and I click the NEXT record button, I am advanced to the *new* record row in the table.
1
5766
by: Nico | last post by:
Hi! I use Windows XP and Access 2002 (XP) SP2 (not SP3) My company has not upgraded to SP3. My problem: -I have a form "F_BOMs" -in this form, i have a sub form called "SF_BOMs" -the sub-form is based on a querry which use 2 tables linked by a primary key. -the form and the sub-form use the parent property of the subform to
4
2916
by: Pierre | last post by:
Hi all, To ease load on a network i close automatically form open with a timer reset by user actions. If the time is expired i go through the collections of form and table and close all those that are open. I choose this way to avoid putting code in each form, plus i can close all open table if any
2
5246
by: MLH | last post by:
Access 97 help says the following... Add new data in Datasheet or Form view 1 Open a Datasheet, or form in Form view. 2 Click New Record on the toolbar. 3 Type the data you want, and then press TAB to go to the next field. 4 At the end of the record, press TAB to go to the next record. I want to accomplish the same objective from within code. How do
4
2147
by: Matt | last post by:
I have the following in a page and I am trying to update a record on the next page but for some reason the form data is not carrying over. Any ideas why? <form name=nxtlupdate method=post action=supers_NxtlUpdate.asp> <% Do While Not objRecordset.EOF
13
3439
by: kev | last post by:
Hi all, I have created a database for equipments. I have a form to register the equipment meaning filling in all the particulars (ID, serial, type, location etc). I have two buttons at the end of the form which is submit and cancel. After i have clicked submit, the information is stored directly into my corresponding database table. My problem here is i need to retrieve back the information submitted to display all the data that the...
2
2951
by: jpr | last post by:
I am using moduled to open forms. I run them from a menu that I have created on the toolbar. The source of the forms are queries all with record source to "lstpreinterview" on a form named eforms. Public Function Openmyform() If IsNull(Forms!eforms!lstPreInterview) Then MsgBox "Sorry. You need to select a record!" Exit Function Else
1
2637
by: ConfusedMay | last post by:
Hi, I'm working on a database that has a form which hold all of our products testing. each product can hold more than 1 complete test (complete test here means that product has to have before and after standard tests) This database is created in access 97. The form has 2 portion which is "before standard test" and "after standard test". What I need is when user does product test, user has to enter before and after standard tests textboxes....
0
1259
by: =?Utf-8?B?Ym9iYnk=?= | last post by:
Hi, I have a Griod View and form view in my Asp page. I select a row from Grid view and It shows details of that row in FormView. There is Update button in EditTemplateField in Form view when I make changes Iand click on Update button it saves the changes in Grid view and in database but then the form view shows the details of next record in Gridview though I didn't select the next row. I want that when I click on save button in form...
0
9528
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
10456
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...
0
10230
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10012
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...
0
9052
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5442
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
5575
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4118
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
2
3731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.