473,386 Members | 1,795 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,386 software developers and data experts.

Referring to iteration number on a continuous form

I want to put a button on a continuous form. I would like the value
of the button to represent the iteration number of the form.

For example, if a form iterates (continues) for 10 records in a
database table, I would like the value of the button on the form to
represent the "index" number of the continuous iteration the button is
located on (0-9).

Any suggestions?

THANK YOU!

Mar 22 '07 #1
4 2070
And what is the button supposed to do?
I did find something interesting while thinking of your question. The
VB editor allows Value as a command button property, but it cannot be
used (in A97 anyway). A command button seems to actually have no value
property.

So for your case, a button may not be doable.

Mar 22 '07 #2
I want to use the VALUE property to pass as a parameter to an SQL
stored procedure that is being executed by Access. The parameter
would be equal to the "row number" of the table, but I cannot use that
property as I am using a continuous form and not a datasheet to
display the table.

I also have an ID column that would work, but I would be facing the
same problem as I would have to grab the ID value FROM THAT ROW to
pass to the query. Do you understand what I mean? If you want me to
send a screen shot or something, let me know.

Mar 22 '07 #3

I'm not sure how the row number will help you. I'm not aware of sql
being able to manipulate that as it's not really part of the record.
Referencing the ID field would be the same as the button and I'm not
sure that datasheet and continuous views have anything to do with it
either. What is the query you are attempting to use? Perhaps you just
need guidance on how to structure it. Include the names of the fields
in the form that need to be referenced as criteria.

Mar 22 '07 #4
On Mar 22, 5:39 pm, "jtertin" <jter...@gmail.comwrote:
I want to use the VALUE property to pass as a parameter to an SQL
stored procedure that is being executed by Access. The parameter
would be equal to the "row number" of the table, but I cannot use that
property as I am using a continuous form and not a datasheet to
display the table.

I also have an ID column that would work, but I would be facing the
same problem as I would have to grab the ID value FROM THAT ROW to
pass to the query. Do you understand what I mean? If you want me to
send a screen shot or something, let me know.
It sounds like you need .bookmark and .recordsetclone. -tc

Mar 25 '07 #5

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

Similar topics

3
by: Prakash Wadhwani | last post by:
Is there any EASY way to highlight a full row in a continuous form so that as i navigate up & down the table/continuous form using the arrow keys, the entire line (all fields) get highlighted ? ...
3
by: B | last post by:
I know there are several ways to speed up combo boxes and form loading. Most of the solutions leave rowsource of the combo box blank and set the rowsource to a saved query or an SQL with a where...
3
by: Damian | last post by:
Hi. Is there a way to programatically populate a continuous form? I have an array of descriptions that I want to display in the continuous form and I have a textbox on the form called...
3
by: Mark | last post by:
Hi there, I have a subform, set as a continuous form. When a user selects a particular record in that subform, how can I make that particular record stand out (color or font change, size, etc) from...
2
by: Rob | last post by:
Is there a faster/cheaper way to determine the number of records being displayed in a continuous form? I always did: dim rs as dao.recordset set rs = me.recordsetclone if rs.recordcount = 0...
3
by: Richard Hollenbeck | last post by:
I have the following query in my form's code: Private Function Get_Data(fieldNum As Integer) Dim strSQL As String Dim db As DAO.Database Dim rs As DAO.Recordset strSQL = "SELECT & "", "" & ...
4
by: Kathy | last post by:
What is the standard technique for handling the fields in the following scenario on a continuous form? Multiple Divisions. Each Division has multiple Buildings. Each Building has a Supervisor. ...
60
by: Dave | last post by:
I'm never quite sure whether to use "this." or not when referring to fields or properties in the same class. It obviously works just fine without it but sometimes I wonder if using this....
2
by: Steve | last post by:
I have a continuous form showing Product Code and Product Name. Product Code is five digits and is sequential. I have a textbox in the form header. What is the code to scroll the continuous form so...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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,...
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...

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.