Results 1 to 2 of 2
  1. #1
    todmac is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2013
    Posts
    20

    Proper way to update records

    I have a database I have built that houses Warranty claims. They are uniquely identified by claim number.


    We regularly get a cheque which has certain dollar amount that need to be applied to certain claims.

    I want to write a procedure where the user enters the cheque number and then in a table enters the Claim numbers and amounts. Once the procedure runs it would find each Claim Number the user entered and update the claim with the cheque number and dollar amount.

    I am not looking for the coding per se, but the best approach to take in order to achieve this. Table, schema, query, string?

    So far I have:
    Code:
    Private Sub Command6_Click()
    Dim CQNum As String
    Dim WoNum As Integer
    Dim Amount_Paid As Currency
    CQNum = InputBox("Please enter the Cheque Number you wish to Process.", "Cheque Number")
    If StrPtr(CQNum) = 0 Then
        MsgBox "Cancel Was Selected"
        Exit Sub
            ElseIf CQNum = "" Then
            MsgBox "You did not enter a Cheque Number"
            Exit Sub
            End If
    
    DoCmd.OpenTable "Cheque", acViewNormal, acAdd
     
    End Sub

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Once check could be for multiple claims? I suggest a table for Receipts and a related table for Receipt Details.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 3
    Last Post: 04-28-2014, 03:17 PM
  2. Replies: 3
    Last Post: 03-22-2014, 04:32 PM
  3. Proper Use of SetFocus?
    By rpeare in forum Forms
    Replies: 14
    Last Post: 10-21-2013, 02:58 PM
  4. Proper ERD
    By Zealotwraith in forum Access
    Replies: 1
    Last Post: 09-03-2013, 10:29 PM
  5. Help with proper where portion
    By tmcrouse in forum Queries
    Replies: 1
    Last Post: 10-11-2011, 03:25 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