Show Only The First 300 Record
Feb 13, 2007Is there anyway to make a query that will only show the first 300 records from a record of 3000 ?
So right now I only have 1 unique no which is the item no
Help is trully appreciated
Is there anyway to make a query that will only show the first 300 records from a record of 3000 ?
So right now I only have 1 unique no which is the item no
Help is trully appreciated
i want to be able to create an On Click Event when pushing a command button that will run an Update query to update a record and after it has been updated that specific record will pop up on a Form and be displayed. i know a different way is to run the Update query and then have it displayed in a Select query but i want it to be displayed on a Form instead. is it possible?
View 4 Replies View RelatedI have a query which is showing data below:
ComparisonUser DateLogged
iant 22/08/2005 16:15:23
siobhanr 11/08/2005 16:52:44
I only want the query to show the record with the oldest date ie 11/08/2005 16:52:44. I have tried 'First' etc. Can any one help!
First of all hi everyone, im lookin for some advice
i have database setup with record level locking for multiple users (havent decided weather its should be optimstic or pesimistic yet)
however either way i set this there is no idication that the record is opened/locked by another user is there an easy way to say pop up a msgbox when a user enters a record to say this is in use/locked and show who by using the username?
Thanks
:)
Hi All,
Is there an easy way to show that a record has been deleted (besides "audit trail")?
for example:
if record_id 2 was deleted, the fields can show "deleted"
thx
I am creating a query based on two tables: 1) tblClient (only one primary key "ClientID") and 2) tblContactDate (with two primary keys "ClientID" and "ContactDate").
Each client may have more than one contact date.
In the query, I only want the records from the tblContactDate showing for the MOST RECENT contact date of the client only; however, right now the query is producing more than one record for those clients with more than one contact date.
Not sure if I need add some special code to the "criteria" area in the Design View, or somewhere else. Your help is appreciated. :confused:
Hi all,
Hope every is good.
I've stumbled accross an issue where i have 1 table (140,000 records) and 1 query (141,000 records) making up my MERGE query.
My merge query brings back 55,500 results, this means that there are on 55,000 records that match by a unique ID.
I need to create to other querys displaying the result that are NOT in the MERGE query, 1 for each table/query used in the MERGE query
This will then show me what data we and the client have thats out standing.
cheers
Error#9
I need to write a query that includes the values of 2 fields from the following record. e.g
index Name Total Name2 Total2
1 Dave 8 Steve 4
2 Steve 4 Mike 6
3 Mike 6 Pete 4
4 Pete 4
I can get a partial success when I use the DLOOKUP function along with a sequential indexed field but I am working with 10,000s of records and any subsequent query based on the results of this takes an absolute age to run.
Hello,
I have a "problem" in my database.
I have a form, as you can see in the attachment.
On that form I can choose different installations to which a spare part belongs to, but in that same list of installations it always shows a name of the first installation in the dropdown list. (a default record)
This can cause some confussion, because you see the name in the list, although it doesn't belong there.
How can I fix this?
PS : If I'm not clear about my problem, pls say so, my English is not may native language.
I was having trouble adding my records to my subform. I think it was going into my main form, which is unbound. When I removed the navigation bars from my main form and added them back to my subform, I lost my records that i had. They are still in my table, but not showing in my subform. How do I get them in there?
View 10 Replies View Relatedhi, can anyone help me? i have created a database for the use of a distribution centre which consists of order details and other information. the main idea is for the system to show the next order listed automatically to the user. i have a table of new order details. each order can be one of three either completed, pending or awaiting delivery. so i want the system to automatically clear the completed ones for the user and for the next order details which are pending or awaiting delivery to be shown. how can i do this?
View 1 Replies View Relatedmy table entries are reciept(primary key),name,reciever,address,amount...i want a query to show recently updated entry in table i.e only last entry from table
View 3 Replies View RelatedI am new to access database . I am trying to create a database for my stamp collection. I have created a table and no I want to have a picture of the stamp show in a report. I followed the instructions about creating a field that will be OLE object aware. But when I insert the path to the photo nothing comes up in the photo space. except the name of the path. I tried .gif .jpg .tif files none work.
View 1 Replies View RelatedI have a query based on a table that has the fields as shown below. When I run the query, I will get a separate record for each group as shown below.
prb_no | seq_no |commitment_user_group_cd
602 |3 |ERC
602 |3 |MCE
602 |3 |SRG
602 |4 |MCE
602 |4 |SRG
602 |5 |SRG
602 |6 |MCE
I would like to use a query to show only the records where "SRG" is not listed and where there is another group. So in the example data above, I would like the only record to show in the query to be the last record because it's the only one where SRG is not listed along with another group.
The logic behind this is when a problem is initiated and a group assigned, we do some things and document the results. So I am only interested in the records where we have not documented our results too.
Does anyone know how I can do this with a query?
Thanks,
Jim
I want the query to only show the data where there is a user group
I have a form that is just a display/edit type form and I don't want a blank "new" report to show at the bottom when it is opened up. Is there any way to turn this off or disable it?
View 2 Replies View RelatedHi,
I am trying to create a textbox that will show a document number of the last record so when a user clicks add new document he/she knows what document number to enter in next. It must not involve the user looking a subform with the document numbers on it.
Thanks for your time,
Leon
I have a Yes/No field for Tax in my table. Records that have this field checked will have 5% of tax added to its total cost. I did a DLookup on the On_Current event of the form and it does not work. My code is as follows,
Code:If DLookup("[Tax]", "tblOrderInfoMain", "[PONumber]='" & txtPONumber & "'") = -1 ThentxtTax = 0.05 * [SubFrmLookupRecords].[Form]![txtSumTotalCost]txtGrossTotal = 1.05 * [SubFrmLookupRecords].[Form]![txtSumTotalCost]ElseIf DLookup("[Tax]", "tblOrderInfoMain", "[PONumber]='" & txtPONumber & "'") = 0 ThentxtTax = ""txtGrossTotal = txtFinalSumEnd If
Is it the wrong event to insert my code in? Grateful of any feedback and help. Thanks!
Regards,
Swee
i've designed a rental database (which seems to do what i want) - it's not perfect....
But i can't figure out how to accomplish this.
If i have a tenant, who has previously had a lease agreement on one of my properties, but then moves out, and then moves into one of my new properties, i can't seem to see how to get access to display just the new lease details.
I've attached a blank copy of the DB with some sample data to illustrate this.
you will see that test tenant has two leases, one expired lease, and one active lease, but on the main form it just shows the expired (original lease)....
I have attached a sample spreadsheet. Each store has a planned date which is calculated off the dates in column b and c. The second row is actual date.
As much of the data I have is in MS Access, I tried to use some extracts to appear in this format but no luck.
I have a subform in which the users enter job update information. When an update comes in, they simply enter the information in the new record row, denoted by a * in the left hand column. Each record is timestamped (=Now()) and sorted by newest date first.
Is it possible to display the new record row (the blank one with the star) first? I attempted to add the Autonumber ID, hide it and sort by that but it simply comes up with "(New)" in the ID field.
Help needed again please
I have managed to link a report to a form where you can double click on the surname and the report opens automatically BUT I want the report to only show the data from the record that I have double clicked - at teh moment the report is coming up with thousands of pages - one for each record.
Can anyone help me with this - I think it's probably something simple but I can't work it out on my own :eek:
Is there a way to configure a report to only show
the data from the current record I choose on my form?
Thanks in advance.
I have created a form with two subforms within it.
The TOP subform enables the user to view a specific record (not change it)
The BOTTOM subform enables users to view a datasheet form of all the records and amend them where necessary.
I want the TOP subform to automatically go to the last updated record, meaning that if the user changes the data of a record in the BOTTOM subform it will automatically display the last record on TOP that was updated in the table.
I've looked at the macros available and it only allows me to 'GoToRecord' to either Last, Previous, New etc... Is there any way to go to 'Last modified in the table'??
So I have a form which is showing the current record and you can scroll through these and make modifications to them from the form as opposed to using a table.
The form has the following fields populated from the main table
Customer name (Can appear more than once)
Status
Date
Servers
Positions
In addition it has several buttons for next record, previous record, first & last record, new record, delete record and update record.On this form i have a text box that i want to be able to use to search for a record using the customer name when you press the search button associated with it. I've got some code and it is mostly working but it seems to be moving the text entry cursor to the date box of the record for some reason.
What I want it to do is take the text from the search box and find it and move the form to that record.
Code:
Private Sub btn_cstmr_srch_DblClick(Cancel As Integer)
On Error GoTo HandleError
Dim strFindWhat As String
strFindWhat = Me.txt_cust_search.Value
[code]....
1.) I need the formula to calculate 15% in a new field from an an existing field.
Something like: =([15%] of [price])
2.) How can I get some fields to show automatically on the next record?
I have an Inventory database with 2 tables. Here is a simplified version of both tables:
First Table is Inventory:
Fields are
ID
Description
PackSize
PackCost
Second table is PriceHistory:
Fields are
ID
InventoryID
Date
PackCost
Fields are joined, one to many (one inventory record can have many prices in its history). ID in the inventory table is joined to InventoryID in the PriceHistory table.
The problem comes when I am browsing records in FORM VIEW of the inventory table:
As I page through the inventory records, I often see the same record multiple times (once for each entry in the pricehistory table).
For example, if the item POTATOES in the Inventory table has had it's price updated 3 times (3 entries in the PriceHistory) table, then I see the Potatoes record 3 times as I am browsing.
I only want to see this record once (with the latest price) when I am browsing the Inventory table in form view.