Record Number

Jan 7, 2005

Hello,

I have a main form and a sub form. when a record is clicked on the sub form I would like to change a textbox on the main form to say "You are on record number 8 of 10.

Do you have any idea's how I can tell what record number they are on;-

Main form frmUpdateMain subform frmUpdate.

Thanks PWF.

View Replies


ADVERTISEMENT

Tables :: Procedure To Restrict / Stop Auto Number Increment For Certain Number Of Record Count

Mar 16, 2014

I would like to know if there is any procedure to restrict/stop auto number increment for certain number of record count (say 50), then increment by 1 for next 50 records.

View 8 Replies View Related

Auto Increment A Number Based On Record Value From Previous Record

Nov 17, 2010

create a macro that automatically fills in the next invoice number in sequence",,I'm assuming this macro would look at the value of the previous record and add a one to itI don't want to use a AutoNumber field as I might need

(a) to modify value or
(b) need to skip numbers.

View 8 Replies View Related

Reset Record Number

Mar 7, 2007

I have a cumlative DB that exports a file daily based on what was keyed daily..

Therfore, every day I am sending only new records from the DB to a vendor.

I was using autonumber to assign the record number but they now want the record number to restart at 1 for a new days worth of data entry.

So today's file may have record number 1-10 (10 recs) and tomorrow's file would have 11-20 populated om the record number field.

My new record number would have to be 1-10 today and 1-10 tomorrow etc..

Not sure how to do this easily.

thanks!!!

View 6 Replies View Related

Number And Date = New Record

Nov 14, 2007

Pls help..

I have a table and i want to enter a new record but it has not to be repeated by date..

example: record no is 1, and the date is November 15,2007..

i just want to use the record no again next year...

how can i possibly do that?

View 3 Replies View Related

Using Form Record Number

May 19, 2005

Is there any way that I can set the default value of a text box on a form to be what its record number is for that specific form? Basically I want the default value to be the number that shows on the bottom of the form in the navigation section. Thanks for the help.

View 2 Replies View Related

Display Record Number?

Apr 3, 2008

Is there a way to display the current "record number" on a form?
Thanks

View 3 Replies View Related

Navigation Record Number

Nov 27, 2005

Rather than using the 'Navigation' offered by MS Access I would like to have 2 text boxes, one that shows the total number of records in a recordset (DCOUNT works here) and one that shows the number of the current record, incrementing or decrementing as I click on the 'Next' and 'Previous' command buttons.
Does anyone know if there is there a function that does this?

Thanks ...

View 1 Replies View Related

Add New Day Number Record And Increase Value By One

Apr 19, 2014

I have a table, tblEvents, which I use to store information about a meeting, training session or field trip, including the [StartDate]. I also have a table, tblEventDays, which I use to store the [DayNumber] 1, 2, 3... At the moment I have to enter the day numbers in the subform frmEventDays manually, but I would like to add button controls to increase/decrease the number of days for each event (i.e. add a new record where [DayNumber] is incremented by 1, and delete the last record if I have added too many day records).

I have added button controls to my EventDays subform and managed to use the macro builder to select and duplicate the last [DayNumber] record, but cannot figure out how to increase each successive [DayNumber] by 1.

1. Add a day...

Option Compare Database
Private Sub AddDay_Click()
?
End Sub

2. Remove a day...

Option Compare Database
Private Sub RemoveLastDay_Click()
?
End Sub

View 4 Replies View Related

2 Tables On 1 Form W/same Record Number?

Nov 2, 2004

I need to track employee training hours and employee backfill hours. I will need to see which employee was training, and the employee who filled in for him. Both will have the same info. Is there a way to use two tables on one form, and keep the record number the same in each table? I would need to be able to match the data in table 1 to the data in table 2 by record number.
I thought about one giant table, but I think it may get really confusing. Any ideas?

View 1 Replies View Related

Limit Number Of Record Entries

Mar 3, 2006

HeyI'm trying to create a Library database. This involves restricting the number of loans available to each member (currently 3). I need to make it so no more than 3 records exist in that table for each member. For now ive just entered a VB script that has a message box saying not to enter more than 3 loans per person but I dont think thatll be enough, I need some sort of validation for the whole table rather than a field.I know how to limit the returns of sql queries which is all I can find, but not how to limit the actual amount of entries. The loan table is part of a double query within a subform of the member form if it helps :s

View 6 Replies View Related

Opening A Form To A Specified Record Number

May 7, 2005

If I have an unbound text box (Number of Episodes) with a control source =Count[(UR]) how can I make the form open to the highest number. (ie if a person has two episodes how can i get the form to open to the second one?)

View 1 Replies View Related

Duplicate Record With Auto Number

Nov 15, 2006

I ran into a weird task, sometimes at my job we have to use 3 identicle records where just one thing changes and that is the date. The thing that is giving me a problem is I get an error if I try to duplicate the record due to primary key being duplicated. I have a ID field which gives all records a number and when I try to duplicate the record I am in, I get an error because of the duplication of the ID Field. Is there a way to get around this?

View 6 Replies View Related

Queries :: Inserting A Record Number?

Apr 9, 2013

I have a query with records,

I want a field named RECORD NUMBER beside it I want a consecutive number increment EG

RecordNumber - RecordDecription - RecordTitle
------------------------------------------
1 - TITLE001 - TITLE001
2 - TITLE002 - TITLE002
3 - TITLE003 - TITLE003

is there a formula i can use in my query to create this?

View 5 Replies View Related

Forms :: Displaying Record Number?

Jun 5, 2014

how to make a text box on a form display the record number so it can be seen along side record selector buttons.

I'd rather have my own then use the record selector option that displays at the bottom of the form when enabled.

View 4 Replies View Related

Modules & VBA :: Using Record Number In Where Statement

Jul 8, 2014

I have a form with a sub form based on a query, in one of the fields i use a dbl click to open another form. I have use this in several areas in my DB but i having issues in one section of it not opening to the correct record. i tried a few things but i am limited to what i can use. The Record_Number is an Auto number and CLASS_Num is an entered number buy the user.

I have 2 things that i can use but i can not get the Record_Number to work. When i use the Record_Number i get an Data Type Mismatch Error.

----------------------------------------------------------------------
Private Sub Combo10_DblClick(Cancel As Integer)
DoCmd.OpenForm "Documentation_Form", acNormal, , "[Record_Number] = '" & Me.Record_Number & "' and [CLASS_Num] = '" & Me.CLASS_Num & "'"
End Sub
-----------------------------------------------------------------------

View 3 Replies View Related

How To Make A Record Number Column

Feb 6, 2014

I want to make a calculated column that adds 1 for every new record that isn't marked as being 'deleted' and will possibly subtract one if a record is marked as deleted. I'm not sure where to start other than calculated column.

View 5 Replies View Related

Records In Table By Field, Not Record Number?

Oct 5, 2005

I am pretty new to MS access and have a question that I have not been able to figure out. I am making a database with a form to input the data in to the database. The only thing is I want to be able to search/lookup/record data by the products ID code and not by its record number. For example, product 1234 instead of entry number 1. How would I go about this? Thanks for your time!

View 1 Replies View Related

Count Number Of Times Record Is Viewed...

Jun 16, 2006

What I would like to do is have a field in a given record increment itself every time that record is selected. For example, say you have a table that stores items in the inventory: each item has a times_search_for_field.

Now, lets say a user runs a search which results in the following SQL:

SELECT * FROM Inventory WHERE experation_date=Today();

Now I want to have every record returned by that SQL statement increment it's times_search_for_field incremented by one. I'm just looking for the most efficiant way to do this.

I know I chould just have my asp .net code loop through the results and call an SQL UPDATE statement for each record, but it seems there should be a more efficient way of doing this.

Mike.

View 1 Replies View Related

After Delete Any Record, Autonumber Start With Next Number

Jan 16, 2008

I create autonumber as primary key in a table, then i tried to enter a record in that table. Then i deleted it, but when i enter a new record, auto number started with the next number. Ex: i enter a record and autonumber for it is 1. I deleted this record and entered a new record, but i found autonumber is 2. I want the number is 1,

Why is it happen? any solution ? help me pls...

Thanks

View 14 Replies View Related

Append A Record Using Vba Where There Is An Auto Number Field

Jan 5, 2006

Hi, basically what i want to do is append a record to a table using vba. I would like to take two values from my form (productID, supplierID) and insert them into a table (supplierProductsTBL) under the same headings. I've constructed an sql statement but am getting the following error:

runtime error '3346'

number of query values and destination fields are not the same'

I think this happens because the table also contains an autonumber field (supplierProductID) and i'm not referencing this in my sql statement (below):

mySQL = "INSERT INTO SupplierProductsTBL ( SupplierID, ProductID ) VALUES ('" & SupplierID & "'), ('" & ProductID & "')"

i wuld just get rid of the autonumber field but i need this.

Any help on this would be appreciated, cheers mark.

View 6 Replies View Related

Generate Record Number Sequence In Query?

Mar 23, 2006

Hi -

Suppose I have a generic query that returns a group of records.

Is there some way to generate a field containing the number sequence of each record? E.g. if there are 10 records, generate the numbers 1 through 10?

Must be a simple way to do this, I'm just a bit dense today...

Thanks,

-g

View 1 Replies View Related

Using Record Number And Total Coount In A Calculation

Nov 20, 2007

I have an Access query that lists completed company forms by days to complete in descending order. I want to use the reccord number and total record count to present the percentage of forms that were completed at each completion date. Ther purpose is to quickly show that 80 percent of forms are completed within 60 days. This is easy to do in Excel using the Row() and Count() funtions such as 1-Row()/Count($A$1:$A$5000).
Is there a way to do this same thing in Access?

View 6 Replies View Related

Funny Output On The Record Number Indicator

Jan 16, 2006

Hi all

basically i have implemented something in form that says record 1 of 5 etc

the way this is implemented is done straight into the text box on teh form ...


="Application " & [CurrentRecord] & " of " & IIf([NewRecord],[CurrentRecord],Count(*))


The problem with above implementation is that when adding a new record sometimes i get say record 3 of 2 instead of 3 of 3

somettimes its 3 of 3 but when scrolling back i get 2 of 2

any ideas how i can implement this in a stable manner??

thanks

View 1 Replies View Related

Updating A Number Field When One Record Is Deleted

Oct 5, 2004

In access (2003) I am setting up a table with Employee # (Pri. Key), senority numbers..and
so on. However I cannot figure out how to reset the senority numbers when one leaves. For example Bob is #235 senority and leaves (By retiring, quits or gets fired)..well Mary was #236 and now should be #235 (because Bob is no longer at the company)..and so on with everyone else below Bob getting their Senority number changed by one.>
Do you have any ideas..I tried autonumber, but it will not do that.

View 3 Replies View Related

Use Record Number For Item Numbering In Subform

Sep 22, 2004

I want to use the record number to automatically number items entered into a subform. Anybody know how to do this or if it can be done?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved