Home
Forums
New posts
Search forums
Articles
Latest reviews
Search resources
Members
Current visitors
Newsgroups
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Home
Forums
Computing
Other Software
Crazy Purchase Checkbox Problem- mdb link available
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="globalmindthinking, post: 14114305, member: 112773"] Hi all I have pretty well finished a cafeteria database for a food-shelter. the problem is a purchase history datasheet: The function of the checkbox is to update stock only once... At first it seems fine until I test another checkbox already checked. Meaning... by clicking between two previously (checked) checkboxes.... as I go from one... leaving the other the previous checkbox does not change it status... but the stock [UnitsOnOrder] field is updated. when it shouldn't. the "Function PurchaseUpdateMacro1()" works fine... Can some body help I am stuck on this problem 4-days :confused: I am using Access 2003 Data Tab Validation Rule: <>0 Validation Text: Can't undo "Completion" Checkbox ________________________________________________________________________ Function PurchaseUpdateMacro1() ' This works fine On Error GoTo PurchaseUpdateMacro1_Err Forms!Tab![Purchase Update].Form![Purchase UpdateQuery Form].Form!UnitsInStock = Forms!Tab![Purchase Update].Form![Purchase UpdateQuery Form].Form! + Forms!Tab![Purchase Update].Form![Purchase UpdateQuery Form].Form!UnitsOnOrder Forms!Tab![Purchase Update].Form![Purchase UpdateQuery Form].Form!Purchase = Forms!Tab![Purchase Update].Form![Purchase UpdateQuery Form].Form!UnitPrice * Forms!Tab![Purchase Update].Form![Purchase UpdateQuery Form].Form!UnitsOnOrder PurchaseUpdateMacro1_Exit: Exit Function PurchaseUpdateMacro1_Err: MsgBox Error$ Resume PurchaseUpdateMacro1_Exit End Function ______________________________________________________________________ Private Sub Completion_Click() If Me![Completion] = "True" Then Exit Sub Else Call PurchaseUpdateMacro1 End If End Sub _____________________________________________________________________ [/QUOTE]
Verification
Post reply
Home
Forums
Computing
Other Software
Crazy Purchase Checkbox Problem- mdb link available
Top