Results 1 to 6 of 6
  1. #1
    shafqatali47tda is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2022
    Posts
    3

    how New rate has come in Ms Access

    Hello
    Dear How you all

    Please slove my problem
    I want that when I enter a new rate, the previous rate doesn't change in the rate field, but the new rate I entered automatically comes in the rate field, and when I change the rate again, the new rate It comes automatically, but the rate that is in the rate field before is not changed.
    So what do I have to do for this, and Which queries will be made?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,815
    Enter a new rate where? If you don't want to change existing records, options are:

    1. save the rate to data records using code (VBA or macro)

    2. save rate record ID to data and when a new rate is needed, create a new rate record, have a field that flags the older rate record as 'Inactive' or use date/time field to show date started. Use criteria in query to exclude "Inactive" or use date of data record compared to date of rate started to determine which rate to associate with data.

    Option 1 is probably the simplest approach.
    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.

  3. #3
    shafqatali47tda is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2022
    Posts
    3

    Tell me code (VBA or macro)

    Quote Originally Posted by June7 View Post
    Enter a new rate where? If you don't want to change existing records, options are:

    1. save the rate to data records using code (VBA or macro)

    2. save rate record ID to data and when a new rate is needed, create a new rate record, have a field that flags the older rate record as 'Inactive' or use date/time field to show date started. Use criteria in query to exclude "Inactive" or use date of data record compared to date of rate started to determine which rate to associate with data.

    Option 1 is probably the simplest approach.
    ok thanks than send me macor or VBA code if youhave ?
    thanks for this

  4. #4
    shafqatali47tda is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2022
    Posts
    3
    ok thanks than send me macor or VBA code if youhave ?
    thanks for this

  5. #5
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,858
    Just set your field in the table to the current rate on a new record.

    That is it.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,815
    If you need more help, suggest you provide your db for analysis. Follow instructions at bottom of my post.
    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. Quotations Hit Rate
    By PaulMo in forum Reports
    Replies: 11
    Last Post: 08-03-2015, 12:44 PM
  2. Storing Tax Rate in database
    By Ruegen in forum Database Design
    Replies: 11
    Last Post: 04-17-2015, 03:30 AM
  3. Billing first 2 hrs at one rate
    By wnicole in forum Queries
    Replies: 9
    Last Post: 12-12-2013, 07:18 PM
  4. Replies: 1
    Last Post: 03-22-2011, 07:01 PM
  5. Rate my schema
    By Hypotenuse in forum Database Design
    Replies: 7
    Last Post: 01-29-2011, 01:20 PM

Tags for this Thread

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