472,371 Members | 1,440 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Record Number

DS
Whenever you use a continous form each row represents a record. Does
this record have a number? If so how do you access it. Right now I
have a field using auto number. But if access generates its own number
for that row I'd like to use that.
Thanks
DS
Nov 13 '05 #1
9 8909
Me.CurrentRecord will give you the same number you see in the navigation
buttons at the bottom left of the screen. In a continous form, that number
will be for whichever record is the current record.

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com
"DS" <bo******@optonline.net> wrote in message
news:fe*************@fe09.lga...
Whenever you use a continous form each row represents a record. Does
this record have a number? If so how do you access it. Right now I
have a field using auto number. But if access generates its own number
for that row I'd like to use that.
Thanks
DS

Nov 13 '05 #2
DS
PC Datasheet wrote:
Me.CurrentRecord will give you the same number you see in the navigation
buttons at the bottom left of the screen. In a continous form, that number
will be for whichever record is the current record.

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com
"DS" <bo******@optonline.net> wrote in message
news:fe*************@fe09.lga...
Whenever you use a continous form each row represents a record. Does
this record have a number? If so how do you access it. Right now I
have a field using auto number. But if access generates its own number
for that row I'd like to use that.
Thanks
DS


Thanks, I appreciate the answer, Just one more quick question. How do
you get that number to go to a Subform? I want to add several records
to the record in the Main form and I need that number to transfer to the
Subform because I have to allow several of the same Products in th eMain
form. (I know its bad Database but using the quanity field isn't an
option.)
Thanks.
DS
Nov 13 '05 #3
DS
DS wrote:
PC Datasheet wrote:
Me.CurrentRecord will give you the same number you see in the navigation
buttons at the bottom left of the screen. In a continous form, that
number
will be for whichever record is the current record.

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com
"DS" <bo******@optonline.net> wrote in message
news:fe*************@fe09.lga...
Whenever you use a continous form each row represents a record. Does
this record have a number? If so how do you access it. Right now I
have a field using auto number. But if access generates its own number
for that row I'd like to use that.
Thanks
DS


Thanks, I appreciate the answer, Just one more quick question. How do
you get that number to go to a Subform? I want to add several records
to the record in the Main form and I need that number to transfer to the
Subform because I have to allow several of the same Products in th eMain
form. (I know its bad Database but using the quanity field isn't an
option.)
Thanks.
DS

PS How do you grab this number and place it into a field on the form?
Thanks
DS
Nov 13 '05 #4
I don't know if this is the best way to do it, but in the subform,
under the default value property, I set it to look at the field on the
master form that I want that to be. That is for a data entry only form
though. Otherwise, the field on the sub form would be whatever you
replace that value with. (I hope that makes sense.)

Nov 13 '05 #5
DS
notright wrote:
I don't know if this is the best way to do it, but in the subform,
under the default value property, I set it to look at the field on the
master form that I want that to be. That is for a data entry only form
though. Otherwise, the field on the sub form would be whatever you
replace that value with. (I hope that makes sense.)

I was thinking also (Again)!. I just need to get that number or create
a field that defaults at 1 then increments by 1 as it goes to the next
record. Now the question is how do I do that? Or is it better to grab
the CurrentRecord Number?
Thanks
DS
Nov 13 '05 #6
I'm not sure what you are asking ---
If you have the Linkmaster ste as the primary key in the main form and the
Linkchild set as the corresponding foreign key in the subform, everytime you
enter a new record in the subform, Access will automatically enter the value
for the foreign key which will be the same value as the primary key in the
main form.

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com
"DS" <bo******@optonline.net> wrote in message
news:bo*************@fe09.lga...
PC Datasheet wrote:
Me.CurrentRecord will give you the same number you see in the navigation
buttons at the bottom left of the screen. In a continous form, that number will be for whichever record is the current record.

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com
"DS" <bo******@optonline.net> wrote in message
news:fe*************@fe09.lga...
Whenever you use a continous form each row represents a record. Does
this record have a number? If so how do you access it. Right now I
have a field using auto number. But if access generates its own number
for that row I'd like to use that.
Thanks
DS


Thanks, I appreciate the answer, Just one more quick question. How do
you get that number to go to a Subform? I want to add several records
to the record in the Main form and I need that number to transfer to the
Subform because I have to allow several of the same Products in th eMain
form. (I know its bad Database but using the quanity field isn't an
option.)
Thanks.
DS

Nov 13 '05 #7
DS
PC Datasheet wrote:
I'm not sure what you are asking ---
If you have the Linkmaster ste as the primary key in the main form and the
Linkchild set as the corresponding foreign key in the subform, everytime you
enter a new record in the subform, Access will automatically enter the value
for the foreign key which will be the same value as the primary key in the
main form.

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com
"DS" <bo******@optonline.net> wrote in message
news:bo*************@fe09.lga...
PC Datasheet wrote:
Me.CurrentRecord will give you the same number you see in the navigation
buttons at the bottom left of the screen. In a continous form, that
number
will be for whichever record is the current record.

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com
"DS" <bo******@optonline.net> wrote in message
news:fe*************@fe09.lga...
Whenever you use a continous form each row represents a record. Does
this record have a number? If so how do you access it. Right now I
have a field using auto number. But if access generates its own number
for that row I'd like to use that.
Thanks
DS

Thanks, I appreciate the answer, Just one more quick question. How do
you get that number to go to a Subform? I want to add several records
to the record in the Main form and I need that number to transfer to the
Subform because I have to allow several of the same Products in th eMain
form. (I know its bad Database but using the quanity field isn't an
option.)
Thanks.
DS


After much thought, yes the autonumber does work, but I'm afraid that
it's going to get pretty high after a few weeks use. So I thought that
maybe I would like the number to start at 1 and go up by 1 on the next
record. The number n the main form is an auto number. This number
starting at 1 is on the subform. So I was wondering how to set up a
number field that would increment by 1 on the next record.
I hope this is clearer.Thanks
DS
Nov 13 '05 #8
Don't worry about the size of an autonumber field; it can go to over two
trillion. You and I will never see that many records!! Why don't you post
the tables and fields your main form and subform are based ob and we will
take a look to see if they are correct.

Steve
PC Datasheet
"DS" <bo******@optonline.net> wrote in message
news:o1**************@fe09.lga...
PC Datasheet wrote:
I'm not sure what you are asking ---
If you have the Linkmaster ste as the primary key in the main form and the Linkchild set as the corresponding foreign key in the subform, everytime you enter a new record in the subform, Access will automatically enter the value for the foreign key which will be the same value as the primary key in the main form.

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com
"DS" <bo******@optonline.net> wrote in message
news:bo*************@fe09.lga...
PC Datasheet wrote:

Me.CurrentRecord will give you the same number you see in the navigationbuttons at the bottom left of the screen. In a continous form, that


number
will be for whichever record is the current record.

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com
"DS" <bo******@optonline.net> wrote in message
news:fe*************@fe09.lga...
>Whenever you use a continous form each row represents a record. Does
>this record have a number? If so how do you access it. Right now I
>have a field using auto number. But if access generates its own number>for that row I'd like to use that.
>Thanks
>DS

Thanks, I appreciate the answer, Just one more quick question. How do
you get that number to go to a Subform? I want to add several records
to the record in the Main form and I need that number to transfer to the
Subform because I have to allow several of the same Products in th eMain
form. (I know its bad Database but using the quanity field isn't an
option.)
Thanks.
DS


After much thought, yes the autonumber does work, but I'm afraid that
it's going to get pretty high after a few weeks use. So I thought that
maybe I would like the number to start at 1 and go up by 1 on the next
record. The number n the main form is an auto number. This number
starting at 1 is on the subform. So I was wondering how to set up a
number field that would increment by 1 on the next record.
I hope this is clearer.Thanks
DS

Nov 13 '05 #9
DS wrote:
Whenever you use a continous form each row represents a record. Does
this record have a number? If so how do you access it. Right now I
have a field using auto number. But if access generates its own
number for that row I'd like to use that.
Thanks
DS


The answer is no.

Ron

--
Ronald W. Roberts
Roberts Communication
rw*@robcom.com

Nov 13 '05 #10

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

Similar topics

3
by: Michael Charney | last post by:
I have a form where records are entered. I have turned off the built in record control. I created buttons to advance and go back through the records as well as an add new record button, but I also...
3
by: John Ortt | last post by:
> I have a table of dates in ascending order but with varying intervals. I > would like to create a query to pull out the date (in field 1) and then pull > the date from the subsequent record...
2
by: chris vettese | last post by:
I've been searching for a few days and have't found the solution I'm looking for. I want to create the following in my form's header...Material: 1 of 15. The first number will change as the user...
0
by: Scott269 | last post by:
So I've got an old MS Works database I imported into Access. I needed a primary key so I created a record number field that was just the record number I manually inserted when I entered it in the...
1
by: Scott269 | last post by:
So I've got an old MS Works database I imported into Access. I needed a primary key so I created a record number field that was just the record number I manually inserted when I entered it in the...
3
by: perryche | last post by:
Experts, I need your help in this tricky delima. FormA without record number at the bottom but has a customized record numbering with the following codes for "lblNavigate" label: If...
12
by: Martin Heuckeroth | last post by:
Hi Any idea on how to get a row number from the original table? We do a query and get a result. The row number from the result is different from the rownumber of the table the result originated...
1
by: | last post by:
How can I obtain the record number or row number for a record while in form view? Thank you in advance for any information. R. L.
16
by: usenet | last post by:
I want to be able to use the record numbers of a sub-form, are they available anyhow in VB (Access 2003)? I want to use the sub-form record number as *part* of the primary key for the table...
1
by: chaticathe | last post by:
I am trying to determine the record number of a record in Oracle Forms so I can navigate to that record. I am using the code below but it only gives me the record number of the record I am currently...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
1
by: ezappsrUS | last post by:
Hi, I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...

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.