Results 1 to 2 of 2
  1. #1
    aamer is offline Competent Performer
    Windows 7 Access 2007
    Join Date
    Jul 2010
    Location
    Pakistan
    Posts
    276

    VBA Help Requested

    I am using the following and is working perfect



    Private Sub NEXPPRC_AfterUpdate()
    Me.[Purchase Description] = Me.NEXPPRC.Column(0)
    Me.[Purchase Price] = Me.NEXPPRC.Column(1)
    Me.[Purchase Units] = Me.NEXPPRC.Column(2)
    Me.[Purchase Sales Tax] = Me.NEXPPRC.Column(3)
    Me.Requery
    Me.Refresh
    End Sub

    What I want is to change

    Me.[Purchase Sales Tax] = Me.NEXPPRC.Column(3)

    To something like

    Me.[CatPurchase] = Me."KatSalery".Column(3)



    whereas "KatSalery" is a fixed value that any entry on this form is made it stores "KatSalery" in the field CatPurchase of Purchase table.

    the above is used on combo box, please advise how to use same with text box also

  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 want to store literal text in a field in a table you can do something like the following
    Me.[CatPurchase] = "KatSalery"

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

Similar Threads

  1. The requested member of the collection does not exist.
    By murfeezlaw in forum Programming
    Replies: 2
    Last Post: 07-12-2013, 07:24 AM
  2. Replies: 4
    Last Post: 09-18-2012, 03:01 PM
  3. General database advice requested
    By cheyanne in forum Access
    Replies: 3
    Last Post: 05-15-2012, 06:50 AM
  4. VBA Help Requested
    By aamer in forum Access
    Replies: 7
    Last Post: 03-07-2012, 02:14 PM
  5. Help requested for calculating age
    By techexpressinc in forum Queries
    Replies: 3
    Last Post: 01-28-2009, 11:29 AM

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