Results 1 to 2 of 2
  1. #1
    Babbabooie is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2014
    Posts
    1

    After Update help please

    Newbie.....



    I have [cancelled] as a yes/no field
    I have [cost] as a currency field

    if someone updates cancelled (checks the box) i would like the cost to become 0


    If [Cancelled]<> 0 Then

    EditRecord
    Alias EraseCost
    SetField
    Name ZeroCost
    Value = [tblone].[cost] = 0
    End EditRecord

    Any help is appreciated!!

    Thanks

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    If you have a control bound to the "cost" field, you can reference the field via the control's name

    Me.cost.value = 0

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 7
    Last Post: 08-26-2013, 06:05 AM
  2. Replies: 1
    Last Post: 05-17-2013, 12:53 PM
  3. Replies: 2
    Last Post: 08-30-2012, 07:59 AM
  4. Replies: 4
    Last Post: 11-10-2011, 03:41 PM
  5. Replies: 1
    Last Post: 01-22-2011, 12:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums