To Find Out Maximum From The Records Entered By The Form

Jul 27, 2005

Hi People,
I am working on a database related application in which the user enters the data from the form and it is stored in 3 related tables in DB.

This is what I want to do,

If IsNull(Me.Q1_2005) = True Or Me.Q1_2005 = "" Then
rs!January2005 = Me.Jan_05
rs!February2005 = Me.Feb_05
rs!March2005 = Me.Mar_05
If parametername = "time" then
rs!Q12005 = DMax([Me.Jan_05], [Me.Feb_05], [Me.Mar-05])
else
rs!Q12005 = DMin([Me.Jan_05], [Me.Feb_05], [Me.Mar-05])
End If

If user enters monthly data of Jan'05, Feb'05 and Mar'05, but he is not entering quarterly data of 2005 Q1. So I need to update Q1 data in that record, that has a condition. If the parameter name is time then I want maximum of the three month data assigned to Q1 record in DB table else I want minimum of those three text box values assigned to Q1 record in DB table.

Please help me with this kind of conditional statement.

Rushit..

View Replies


ADVERTISEMENT

Form Does Not Display New Records Entered

Jan 10, 2005

Hi,

I am new here and have been using the build features (and not the code as I do not understand this) to build my registration database.

I have several tables of imported data nicely displayed in one form with tabbed sections. When I tried adding new records by entereing them in the form, they are saved in the underlying tables but the new records are not displayed in the form when I go back into the form.

All the tables seem to be linked to the form when I go into the form selector and Edits are allowed in the property box.

Any ideas on what the problem might be?

Danielle.

View 2 Replies View Related

The Expression You Entered Has A Function Name That XXX Can't Find

May 23, 2006

I have a database functioning pretty well.
All I did was move the files from one computer to another via USB stick and now I get this alarm when I try to run this particular macro.

It is a macro to set a value to specific field.
The Macro uses a condition [Forms]![tblCustomerCall]![Alarm Number]="000".
If the condition is met then it is supposed to set a value to a field in the same form.
[Forms]![tblCustomerCall]![Alarm Descrption] is the item to set.
Left("TV Parity Alarm",50) is the expression.
So if 000 is entered in then the text TV Parity Alarm is filled into the Alarm description field.

It was working perfect until I moved the files to another computer.
I have Office SP2 installed and have updated office with everything available.

Please help.
Thanks

View 10 Replies View Related

Populate A Field For Several New Records With Date Entered In Textbox On A Form?

Jun 23, 2015

I have a form with a text box where the user enters a date and then clicks a button titled "Add." I've added an on-click event to the Add button that runs an append query that adds several records to a table [tblTracking]. I have a field in tblTracking called EndDate. I want the date that's entered into the text box by the user to be populated into all the new records added to the tblTracking when the append query is run. Currently, all fields in tblTracking are populated when the append query is run, except the EndDate field.

Is this possible? If so, how?

I've experimented with adding a separate on-click event that adds a record to a separate table containing only the date entered in the textbox and an auto-populated ID field. I thought there might be a way to utilize the ID field to pull the associated EndDate into the Tracking table, but I can't figure that out, either, since I don't know how to tell it to look at the date field in the last record of the table. That sounds unsafe anyway.

View 3 Replies View Related

Maximum Number Of Records

May 3, 2006

hi all,

This is general question only. How many number of records that Access can handle as a maximum records?
Or it only depend on size limit (4GB)???
thanks

View 2 Replies View Related

Maximum Number Of Records

Nov 1, 2014

I have created a db for my warehouse, now what I want is to set a maximum no of items to be issued to one person = 20 (means 20 rows only) in a subform. If the number exceeds it prompt user that you reached to the maximum no of issues.

View 2 Replies View Related

Maximum Records In A Table !!!urgent!!!

Jan 21, 2005

Can anyone please tell me the maximum number of records a table can accomodate? Also what happens if the number of records exceeds this maximim value? Awaiting reply

View 2 Replies View Related

Count Records Between Maximum And Minimum Date

Feb 24, 2008

hi all,
I've got one question regarding dates.
I've already make the form to show the count of records by using query according to the start and end date selected by the user.
What I want is when I open the form, it should show the results of count between the minimum and maximum dates inside the data table. It means I want to show the count result without date specification that is the total count from all records of the whole table .

Can anyone help me how can I make it?
thanks a lot in advance.

View 2 Replies View Related

Queries :: Dropdown Box - Find Records Based On A Form

Jul 16, 2014

I have a form with a dropdown box that shows the 'Group by' records in a table.

For example the form shows "Art_6". My table has many records (could be 1000's) that start "Art_6".

I want a macro/query to find all records that start "Art_6" and delete them.

How to find only those that start as described.

View 13 Replies View Related

Modules & VBA :: Updating Or Adding Records To Form - Find MAX Of Number Portion

Jun 28, 2013

I want whenever I'm updating or adding records to my form, the ID automatically take the value of the previous ID and increment it by 1.

The field type is text (mixed with number) - PM0000000.

I've done some research, what I understand is that I need to:

-do a lookup and
-find the MAX of the number portion.

Name of form - Payment
Name of table - Payment
Name of field - payment_id

I tried these, but to no avail...

Private Sub payment_id_Click()
payment_id = DLookup(("[payment_id]", "Payment", "[payment_id]=Forms![Payment]![payment_id]-1")payment_id + 1)
End Sub

[Code] .....

View 8 Replies View Related

How Do I Print The Total Entered In Fields Of Records

Nov 7, 2007

I have a database for police officers to enter their daily activity. For example on arrests, Date:_____ Drugs____DUI___

The officers enter the date and the total number arrested for each charge. I want to print a monthly report. How do I make the report print this information for a specific date range? The way I have it now, it asks for the startdate and enddate, but it still totals every record, not just the date range.

View 14 Replies View Related

Queries :: Display Last 100 Records Entered In Database

Jul 15, 2014

I am looking for a way to either display through a query with an expression or any other alternative that someone may have to display the last 100 records entered maybe based on date entered or something.

At the moment i have a query and report going form start date to end date but would also like a query/report that will just show me the last 100 records entered.

View 10 Replies View Related

Preventing Duplicate Records Being Entered (Double Bookings)

Oct 24, 2006

I have a form which allows the user to book rooms.

On this form, there are the following fields:

BookingID: (Autonumber)
RoomID: Text box
Time:Text Box
Date: Text Box
Class: Text Box
Teacher: Text Box

The form adds this information to the Booking table.

What I'm looking to do is prevent the user from double booking a room,like being able to check if the Room is already booked at that time and date, before the new information is added to the table and the room becomes double booked.

Basically this would be checking the RoomID, Time and Date fields, as everything else is irrelevant. What would be the best way to do this?

View 3 Replies View Related

Forms :: Design A Subform To Allow Multiple Records To Be Entered?

Mar 27, 2015

I am trying to design a subform to allow multiple records to be entered and then uploaded to a table. I've designed the subform but it is currently pulling all of the records from the table through and all I want is a blank subform for data entry.

I have tried putting a macro in the On Load and On Open events to get it to go to a new record but I keep getting error number 2046.

View 2 Replies View Related

Union Query Prompts For Parameters - Returns All Records With Parameter Entered!

May 17, 2006

Hello all,

I realise this issue is a common one and it is usually down to simple typos (I've looked at several similar posts) but none of the advice I've seen has solved my problem. I've designed the following Union Query:

SELECT [Email],[Title],[First_Name],[Last_Name],[Company],[Phone],[Country],[TEST_AND_MEASUR],[REC_AND_PROD],[LOG_AND_TRANSC]
FROM [Region 1]

UNION ALL SELECT [Email],[Title],[First_Name],[Last_Name],[Company],[Phone],[Country],[TEST_AND_MEASUR],[REC_AND_PROD],[LOG_AND_TRANSC]
FROM [Region 2]

UNION ALL SELECT [Email],[Title],[First_Name],[Last_Name],[Company],[Phone],[Country],[TEST_AND_MEASUR],[REC_AND_PROD],[LOG_AND_TRANSC]
FROM [Region 3];


It should be very simple and I've checked it over and over, but when I run the query an Enter Parameter dialog appears prompting me to enter Email.

If I just click OK I get all the records but with the email field blank.

Similarly if I type x@y.com it returns all records but with the email fields all containing x@y.com

Advice would be very much appreciated!! Thank you in advance.

Abi

View 2 Replies View Related

Queries :: Select Query To Pull Records Based On Multiple Strings Entered By A User?

May 1, 2013

Is it possible to run a basic select query to pull records based on multiple strings entered by a user?

I have a query with field criteria - Like '*' & [Type In MMDBID:-] & '*'

This allows the user to input one MMDBID and the records are retrieved from the db.

I can also use the OR statement in the same field criteria "AB123" OR "BC123", and all records based on those values are pulled back.

But I cannot get the user to input multiple values and I tried amending the SQL string based on the OR criteria above

SQL statement (Like) is below :

SELECT tblFund.MMDBID, tblFund.[Investment Name], tblCodesLive.[IOE Code], tblCodesLive.[Uptix Code], tblFund.[Red Payment Deadline]
FROM (tblFund INNER JOIN tblCodesLive ON tblFund.MMDBID = tblCodesLive.MMDBID) INNER JOIN tblContact ON (tblFund.MMDBID = tblContact.MMDBID) AND (tblCodesLive.MMDBID = tblContact.MMDBID)
WHERE (((tblFund.MMDBID) Like '*' & [Type In MMDBID:-] & '*') AND ((tblFund.Editing)=False) AND ((tblFund.Closed_Fund)=False));

View 10 Replies View Related

Cannot "Find" Records While In A Form

Apr 7, 2005

I have an Invoice form with Customer ID and info fields. The Customer ID field is a combo box. If the Customer ID is not found the user can then double click on it to bring up the Customer form in order to add this to the Customer table.

On the Customer form I have a Find button. The user needs to lookup ID's in order not to create a duplicate. This Find button functions correctly if the user just goes into the Customer form.

If the user is in the Invoice form and double clicks on the Customer ID field, the Customer form appears. They can add and scroll through the list, but if they click on the Find button, a message appears - "Find isn't available now"

Have I forgotten to add something?

View 4 Replies View Related

Form Or Table: Auto Entered Value

May 19, 2005

Hi there

I have a small problem that I was wondering if someone could help with.

When a user creates a new record I would like it so that some html is written automatically in to a defined column.

Is this possible? I tried to use the default value property of a column but access does not like it.

Any ideas :confused:

Thanks :D

Jools

View 14 Replies View Related

Entered Value In Form Must Not Overwrite Tables

Nov 8, 2004

HELP!!! I am getting quite desperate. I am a novice. I have made a database for customers, products, etc. They all have good relations. I have made a query where I can see who bought what and when and how much it costs. Now here's the problem. When my prices in my product list (this is the table of which the prices show up in my form) have to be altered (because of prices going up), it automaticaly changes the query and the form!! According to messages stated in this forum, I have opened the properties in the text boxes and changed the price fields, "enabled" to no, "locked" to yes, and the forms DataEntry to yes. Strangely in the North Wind example, the prices shown in the form (entry form), are extracted from the subformdetails table. But how can you extract something from a table if there is nothing in the table?? Totaly I have four tables (Orders, Orderdetails, Products and Customers) Alle these tables are joined on a one to many basis.
Please can somebody help me.....
Thank you
Anouk (Netherlands) :confused:

View 14 Replies View Related

All Data Entered On A Form To A Table

Sep 11, 2007

I have a form with several tabs on it, where the user enters various info.. I want to have the user hit the save button and have all info saved to a single table. Is there an easy way to do this. Please excuse my ignorance but I am fairly new to Access. Thanks in advance!

View 9 Replies View Related

Can I Set My Form Default To Last Entered Record

Oct 1, 2005

Hello, I have a program/database that I'm building in Access 2003, It has new client/bid entry form that has many text boxes for instance: Client, address, Phone numbers, Date etc. These text boxes are actually populating the same text fields in the PrimaryBid_Master form.

My question is every time I fill out the client entry new bid form and then exit to the PrimaryBid _Master form it defaults to the very first record entered, and I would like it to default to the last record entered, The record I just got done entering into the new client bid form, this would save me from having to filter/find it every time I enter a new bid/client, Is this possible and if so Can you describe to me how I can have my program do this?


Thanks--Chuck I really appreciate any help/suggestions.

View 3 Replies View Related

Verify If Data Was Entered On Form

Oct 18, 2004

Hi all..

This is my first question posted on this site. I have created a survey with questions to be answered. The database is already populated with records of the people's names who were getting the survey. What I need is when the data entry clerk brings up the customer's name on the form, is that they are forced to enter the surveys answers for certain questions before they click the "Save" button. The answers are set up as radio buttons on the form (ie Less than 6 Months, 6 Months, 8 months and 1 Year).

Not sure if a Before or AfterUpdate macro is needed?

Any suggestions would be appreciated. Please email me directly if you have code.

Thank you

View 2 Replies View Related

Forms :: Value Entered In Form Does Not Appear On Table

Nov 14, 2014

I am having an issue in access form that when I enter new values in a form it does not appear on the table. Normally, as I understand, value entered in form should appear on table automatically. This is not happening to me.

I checked the design view of the form and find that the data is linked to table, but in reality it is not the case.

View 3 Replies View Related

Help Find Related Records.

Apr 27, 2005

Hi
I'm have created a video database with a genre field. Is there a way that when i click a button a list is displayed of all the records which are the same genre?
Thanks
Aden

View 1 Replies View Related

Find Records From 2 Tables

Jul 31, 2007

How would one go about comparing 2 tables and finding those records that are not common to both tables? For instance, I have a table that I suspect some records have been accidently deleted by the user. I would like to compare that table to an older version of the table, and list only those records that exist only in the older version of the table.
Thanks.

View 2 Replies View Related

Find Unique Records

Mar 23, 2006

Feeling stupid today...how can I query a table to find the last five unique records?

Table1:
PrimaryKey
Field1

Field1 may contain duplicates. I need the five latest entered unique records in Field1, and am struggling to write a query for this.

Many thanks to anyone who can help out.

[Still using Access 97]

View 1 Replies View Related







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