473,388 Members | 1,499 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

AbsolutePosition is equal to -1

I am have a continuous form as a subform which has a field called
Status. For complicated reasons, I need users to only enter a status
on the first record of the form no matter how many records there are.
I wish I could only display this control on the first line, but
can't. I put code into the control that gives the user a warning if
they try and enter a value in the is control but its not the first
record.

I'm using AbsolutePosition to determine if I'm not the first record or
not and my code seems to work. My problem is that every so often the
AbsolutePosition of the first record is calculated as
-1 and not 0.

Does anyone have any explanation for this?

Robby

Apr 6 '07 #1
1 2006
If the form opens filtered so that it contains no records, its
AbsolutePosition is -1

For example:

DoCmd.OpenForm "Form1", DataMode:=acFormAdd
? Forms!Form1.Recordset.AbsolutePosition

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Rob Bunocore" <ro**********@infocore.uswrote in message
news:11**********************@y66g2000hsf.googlegr oups.com...
>I am have a continuous form as a subform which has a field called
Status. For complicated reasons, I need users to only enter a status
on the first record of the form no matter how many records there are.
I wish I could only display this control on the first line, but
can't. I put code into the control that gives the user a warning if
they try and enter a value in the is control but its not the first
record.

I'm using AbsolutePosition to determine if I'm not the first record or
not and my code seems to work. My problem is that every so often the
AbsolutePosition of the first record is calculated as
-1 and not 0.

Does anyone have any explanation for this?

Robby
Apr 7 '07 #2

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

Similar topics

8
by: Hung Huynh | last post by:
Hi, I'm trying to use either one of these methods to position the cursor in a specific position inside a recordset, but neither one seems to work. For example, I have 10 records in my rsData...
0
by: tekanet | last post by:
Hi folks, I'm new with MySQL and I'm really impressed by this database engine. While waiting for Stored Procedures :) (ver 5: anyone can say when will be, approximately, released?), due to the...
4
by: Jeremy Howard | last post by:
Hello everyone, I'm not a database guru so I'm sorry if this is a dumb question but here it goes... I have this sql query that I'm trying to run against a table on a Sql 2k server: SELECT ...
15
by: Murt | last post by:
Hi, when writing equations in vb .net, how do you enter the signs "less than or equal to" etc. thanks Murt
3
by: Bob | last post by:
Using ODBC to a SQL database I use the code; Label1.Caption = record_rst.AbsolutePosition & " of " & record_rst.RecordCount giving '4 of 256' for example. My problem, I am now connecting to an...
17
by: Mark A | last post by:
DB2 8.2 for Linux, FP 10 (also performs the same on DB2 8.2 for Windoes, FP 11). Using the SAMPLE database, tables EMP and EMLOYEE. In the followng stored procedure, 2 NULL columns (COMM) are...
14
by: serge calderara | last post by:
Dear all, What is the proper way to check if two object are equal ? I do not mean equal on Object type only but also object value's thnaks for help regards serge
9
by: superd052 | last post by:
So I'm having a little trouble with the Recordset.AbsolutePosition property, and similarly, the RecordsetClone.AbsolutePosition property in Access 2007. Here's what I'm trying to accomplish: I...
6
by: Trompomerson | last post by:
Hello guys, I am running the script below and am able to load my recordset and cycle through the values in the fields. However I want to use the .AbsolutePosition property to help place the data...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...

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.