Calculating Using Forms...can It Be Changed?

Jan 2, 2006

If in a form i have a box that calculates something i cant change that..is there a way around it?

for example on a sales invoice consider the following fields..

sales total

sales tax

grand total

grand total=sales total + sales tax...

but what if i want to change it?? not the formula.. but just to overright it?

View Replies


ADVERTISEMENT

Forms :: Record Cannot Be Delete Or Changed

Aug 7, 2015

I have a "Search" form that I am using to search through a query in a list box of all of my Customers. Once the record that I am wanting to view comes up I highlight it and click a "View" button to bring up another form with the customers full record. When this form is open I am able to update the customer information and add User's to it if necessary.

My problem comes after I click on my save and close button that takes me back to me search form. I want to close the search form and the error I get is "The record cannot be deleted or changed because table "tblUserProfile" includes related records." I click OK and get a SECOND error stating "You can't save this record at this time. MS Access may have encountered an error while trying to save a record. If you close this object now, the data changes you made will be lost. Do you want to close the database object anyway?"I have already made my changes and saved them in the form with the customer record so am not sure why I am getting an error when trying to close the Search form.

I am using an embedded macro on the view button. OpenForm with a Where condition [tblCustomerRecord]![Profile ID]=[Forms]![frmSearchCustomer]![Profile ID]

I have the listbox bound to the Profile ID. I have not been able to get the view button on the form to work without this step.Is there a better way to view a specific record from my listbox results?

View 1 Replies View Related

Forms :: Unselecting Tick Box When Combo Box Value Has Changed

Oct 28, 2014

I have a form with a combo list and a check box.

The combo list has values 1-4, the default is 1.

By default the checked box is ticked

I want that if a user changes the combo value from 1 to 2,3 or 4 then the check box changes from true to false.

View 2 Replies View Related

Forms :: Why To Undo Edits After Changed Records In A Form

Jul 22, 2013

I thought "Undo" was only available while in the current record.Here were my steps:

1 - Loaded form that shows 1 record per form page.
2 - Edited a record
3 - Moved to another record with status bar nav arrow
4 - Verified my edit was in the underlying table
5 - Moved back to the original record, again using status bar nav arrow
6 - Clicked my "undo" control and the original data appeared in the form
7 - Moved to another record
8 - Verified my original data was now back in the underlying table

My undo control has this vba on click:

Code:
DoCmd.RunCommand acCmdUndo

View 1 Replies View Related

Forms :: Preventing Data To Change When Text Box Value Is Changed

Apr 24, 2013

A form displays information on a construction site in various text boxes. I want to enable the user to change this information but not until a save button is pressed.

Now I have the problem that as soon as I change the value of a text box, the data in the database is updated.

Is there a way to prevent these updates but still get the text fields to be linked to the attributes of a table?

View 2 Replies View Related

Forms :: Background Color On Subforms Can Be Changed To Transparent?

May 1, 2013

Does the background color on subforms can be changed to transparent?I have a form which contains 4 subforms. The main form has a picture that likes up with the 4 subforms, but when i go to make the sub form background color transparent it is greyed out.

View 5 Replies View Related

Forms :: Capture When Record Has Created And Data On A Form Changed

Mar 28, 2013

I need to know when:

* a new record has been created
* data on a record has been changed

Does the On Dirty event capture this, or can I just use the forms On Change event?

View 2 Replies View Related

Forms :: How To Make Hidden Fields Permanently Appear When Another Field Is Changed

Jan 14, 2015

i have a form that shows payments (checks) that have been issued. sometimes those checks need to be voided and i want 2 fields (Updated By and Updated Date) to pop up when the payment distribution field is changed to a void status.

payment distribution: "I" for issued and "V" for void

i've gotten the On Change Event to work with VBA when the payment distribution changes from "I" to "V" and the 2 new fields pop up but if i exit the form and go back in to look at that record, the fields are gone. Is there a way to make the fields permanently if the payment is "V" on the form?

this is what i have so far for the On Change Event:

If [payment distribution] = "V" Then
me.cmbo_UpdatedBy = True
me.txt_UpdatedDate = True
Else
me.cmbo_UpdatedBy = False
me.txt_UpdatedDate = False
End If
End Sub

View 3 Replies View Related

Forms :: Calculating Field Value

Jan 31, 2015

calculating a field value.I've got 5 products, numbered 1 - 5 in tblProducts.productID..In one order I'll only ever have the 1 - 5 products, with a maximum of 5 products in any Order.

products
1 = mushroom
2 = tomato
3 = egg
4 = fish
5 = meat

tblOrder.orderID
tblOrderDetail.productID
I have a field in tblOrderDetail called "productNumber" which is where the result should go of the calculation.

I need to calculate the total number of products ordered but it could be a combination of them, the thing is that I need to reference them in a specific order if they exist in the order as per the schedule above.

example
order 1 = products 1,3,4

the result should be
1.3 (mushroom)
2.3 (egg)
3.3 (fish)

example 2
order 2 = products 1,4

the result should be
1.2 (mushroom)
2.2 (fish)

example 3
order 3 = products 4,1 (this one shows that we haven't ordered it in order, I still need to display that correct order)

the result should be
1.2 (mushroom)
2.2 (fish)

View 14 Replies View Related

Forms :: Calculating Time Accurately?

Nov 3, 2014

i have a opened date[default value =Now()]
and
resolved date[default value =Now()].

i would like to calculate the time elapsed between the two dates. it is normally on the same day, but there are instances where it can run past midnight.

View 12 Replies View Related

Forms :: Calculating Time Into Cash Value

Nov 11, 2014

I have a combo box which looks up a set of values from a table, some of these I have got to store, others I merely want to work with and calculate from. These columns are:

DutyNumber
WeekendOrBHPayment
Sun-ThursNightsPayment
FriSatBHNightsPayment
OTRate
WRDRate
AHDifference
SKPayment
UnSocPayment

Now for most of these, I 'think' I have it planned where they will go or how they will be used, but the OTRate is flummoxing me a wee bit.

On the form, I have an OT(time) field - the idea being that the user will enter the hours and minutes of overtime they have done (short time format - is this correct?)

Then, I would like the form to calculate the cash value (has to be stored in a field) by multiplying the hours/mins worked by the OT Rate - - but I don't want to store the OTRate unless I really have no other option. Once the calculation has been done, if the Rate is then 'forgotten' then that is no issue, as the only time it would be needed is if the field is revisited to amend any errors (so I am thinking the calculation should be done as an After Update event on the OT(time) field?)

View 14 Replies View Related

Forms :: Calculating From A Query Based Subform

Oct 9, 2013

On my master form I have a subform called invoices this is tied by Site Number to the record on the form which is has the following important information, site code. group code, exp code an amount.

On another subform via a query I have a summary of all the invoices by exp code and group code.On another subform I need to create a Income an Exp.

I have two combo boxes 1 for the Group Code, and another for the expense code what I want it to now do is look up group code exp code = Total amount. There is currently only 1 line as you will see but there will be many rows of summary data...do i need a subform for the summary?

And I need to do it this way as not all exp appears on the income and exp and I want to be able to lay out the expenses for each site differently Attached is the zip file, of the database the only record that has data is site code 0289S

View 2 Replies View Related

Forms :: Calculating Months In Search Form?

Sep 25, 2014

I tried to create search Form in access and after trying for while I finally made it. I have drug down the "query" to the design view of "Form Search" and added up there. Now using "STD" and "TELENO" I can search for these 3 coloumns. My main table is "Example"

Now as you can see in my attached screen shot Column "Recieved Time- less than 3 month" I would like to do that in Access. I would like to create something that will autometically calculte(Substract) the date from "Order Date to Today's date and will give me a result= "Less than 3 months or Greater or less than 4 months etc". I mean it will always substract from "Order Date" to "Todays Date". I have tried with some macro as well but it did not show up "Todays date"

I tried several ways to do it, even tried to input another coloumn(Using formula) in "Query" table but failed to do so.

View 2 Replies View Related

Forms :: Calculating Fields And Auto Update

Jun 15, 2013

In this table I have two fields Seats Available and Seats Remaining

When I register a student to a Course in the Courses table I would like the corresponding Seats Remaining field for that course to decrease automatically.

I can, of course, run a report or a query to see how many are enrolled in the course and then manually update the Seats Remaining field (which is what I currently do), but I would like this process to be automated each time I register a new student.

View 4 Replies View Related

Forms :: Calculating A Future Business / Work Date

Sep 14, 2013

I am trying to find a simple way to determine the work date based on knowing the Start date and how many days ahead I want the date for. These means I need to exclude weekends and holidays.

I tried Pat Hartmans solution located at

[URL]

I discovered that the function in there that is supposed to do this does not account for weekends, only holidays.

View 7 Replies View Related

Forms :: Attendance Tracking And Fees Calculating For Gym Database

Apr 11, 2013

I'm creating a Gym Database and need to be able to track attendance for specific classes. I need to have a system in place allowing me to do a register for attendance for each activity.

I also need to be able to calculate fees based on attendance. So if a person attended Gym 5 times in the month (£5 per session) and then Swimming 3 times in the month (£2 per session). My system should automatically calculate this based on the attendance tracking.

Also: In the booking stage, I need to have a field telling me how many spaces are left on each activity. Say for example I'm booking Person 99 in for Swimming and there is only 11 places left I need the field to display 11 places left. After that booking it should update saying 10 places left because Person 99 is booked in.

View 1 Replies View Related

Forms :: Current Time On Form Status Bar - Keeps Showing Calculating

Aug 2, 2014

I have my main menu form that shows the current time and uses the OnTimerEvent for this. (Set to 1000) Issue is that when I open another form it keeps showing Calculating. It does not seem to affect performance but keeps the status bar from showing the control explanations.

View 10 Replies View Related

Forms :: Calculating Working Days Based On Date Range

Mar 20, 2014

I am trying to calculate the working days Based on all web searches I am unable to find the specific scenario I am working in Auto industry, which means auto industry usually close twice a year for any reasons, let say in July for one or sometime two weeks and in December depends upon the Christmas date usually from December 20 till Jan 01

Now my question is when i am enter the holiday details in table do I have to enter line by line date e.g. july 01, 02, 03 (I am able to understand, how this works but still not yet tried) OR july 01 to July 07 (which make sense, but unable to find how to use date range to calculate working days)...

View 1 Replies View Related

How Can I Tell If Data Is Changed

Apr 7, 2005

I have a need to know if a user changes any data. The problem is there are 200+ forms where data can be changed.

Is there any way besides attaching the same function (user defined, Public) to each after update event for each form??

Thanks
Mike

View 1 Replies View Related

Notification Of Data Being Changed

Jul 28, 2006

I am in major need of help. I am need Access or Excel to notify a user when a change has been made to a table. I have a potiential database/spreadsheet, and this would help me. Can anybody help me out?

Chris

View 1 Replies View Related

Database Appearance Changed

Mar 20, 2007

Hi,
Yesterday something wrong happened with my computer and got hanged!
I called a hardware person and he corrected the O/s. I am using XP (O/s) and office 2003. The hardware person told me that he has not changed anything in msoffice.
I have already created some applications in access 2003.
I have observed that the application swithboard appearace is changed and buttons on switch boards are looking now like access 2000. Then I checked for database window. The Table, Query, Form, Report etc are looking like access 2000 window.
I have captured present screen and my earlier screen how it was.
Can anyone help me to get original display of my swithboard ?

Thanks in advance..
Satish

View 2 Replies View Related

ID Changed When UNION Queried

Aug 18, 2006

Hi all,
I have a UNION query of multiple tables:

Select * From tblCal_SlsAB
UNION
Select * From tblCal_SlsBC;

Both of them have Unique IDs as PK, such as: AB001, AB002, etc for tblCal_SlsAB and BC001, BC002, etc for tblCal_SlsBC. When I do the UNION query I get: 1, 2, etc for both IDs instead. What's causing the ID to change and is there a workaround it? I need to get the same exact IDs I have in those individual tables. Thanks in advance!

Max

View 5 Replies View Related

Timestamping Changed Records

Aug 24, 2006

Hi,
I'm trying to populate a read-only field on a form with the time and date the record was last changed.
This is to acheive seeing a list of records that have been updated this week for example.
I have this at the moment:-

Private Sub Form_AfterUpdate()
Last_Updated.Value = Now()
End Sub

When I've updated a record it won't save and when I try to move onto the next record it does nothing, the button clicks but no response.
Does anybody have any idea where I'm going wrong or have any suggestions?

Would appreciate any help.
Thanks,
Dan

View 3 Replies View Related

Why Is The Number 00712 Changed To 712

Apr 24, 2006

Hi,

I have an complex code. In this code I sent the form value 00712 with query string and an insert SQL command to an Access database. The probleme is that the number is stored as 712 in the database. I do not want that.

Does anybody know how I can avoid this?

Thx a lot.

Flip

View 2 Replies View Related

ID Changed When UNION Queried

Aug 18, 2006

Hi all,
I have a UNION query of multiple tables:

Select * From tblCal_SlsAB
UNION
Select * From tblCal_SlsBC;

Both of them have Unique IDs as PK, such as: AB001, AB002, etc for tblCal_SlsAB and BC001, BC002, etc for tblCal_SlsBC. When I do the UNION query I get: 1, 2, etc for both IDs instead. What's causing the ID to change and is there a workaround it? I need to get the same exact IDs I have in those individual tables. Thanks in advance!

Max

View 2 Replies View Related

Apply Changes From Date Changed

Jun 12, 2014

I have a database that contains a table with all tasks made in our team and the time it takes to perform the task. I have another table with month, year and value in which I put month after month the volumes that each task handles. So, in a query I multiply the time to perform the task and the volume; month after month I have different results. However "the time to perform the task" may vary depending on processes improvements that we made. If before I had 5 minutes to perform the task and now I have 2, I change it and then the results on the query are changed for all months. I do not know if there is a way to specify that that change must be applied from the month where it is updated to the following months and not retroactively.

View 3 Replies View Related







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