Results 1 to 5 of 5
  1. #1
    Ihussein is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Nov 2015
    Posts
    14

    Smile Update Table column with dates based on From - To Value


    Dears,
    Please see attached table I'm try to update all the records of the table based on the above entered From - To Qnt, CmdUpdate on Click Event
    Regards


    Click image for larger version. 

Name:	UpdateTable.JPG 
Views:	28 
Size:	52.9 KB 
ID:	22713
    Attached Thumbnails Attached Thumbnails UpdateTable.JPG  

  2. #2
    Gina Maylone is offline Always learning
    Windows 7 64bit Access 2013
    Join Date
    Jun 2013
    Location
    Afton, MN
    Posts
    544
    Hi!

    You can't put a command button on a table. Create an unbound form with unbound fields, "from" and "to", and "dateofreceiving". Create an update query using these unbound fields. I would have to know more about what you're trying to accomplish in order to give you further direction.

    Hope this helps.
    Gina

  3. #3
    Ihussein is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Nov 2015
    Posts
    14

    Smile Update Table column with dates based on From - To Value

    Thanks Gina,
    I have developed sample database that might give more clarifications on the issue, I have created a form which has a a subform which displays the contets of my linked table in datasheet view. I can filter rows and reduce my visible records which it's working fine, user will enter QntFrom and QntTO and ReceivedDate, which is should update all the records within the specified range and move the update data to table (tblMontlhlyData) under field "DateReceived", and for the first textbox month of issuance will update field "MonthOfIssuance".
    I'm attaching sample database hope it clarifies more.
    Regars
    Attached Files Attached Files

  4. #4
    Gina Maylone is offline Always learning
    Windows 7 64bit Access 2013
    Join Date
    Jun 2013
    Location
    Afton, MN
    Posts
    544
    UpdateTable2.zip
    Good morning,

    How do you want to calculate "QntFrom" and "qntto"? Do you want the numbers added to the existing numbers? I'm attaching what I would do (updating the info), I'm sure there are better ways using recordsets but I'm not adept with them. Hope this helps.

  5. #5
    Ihussein is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Nov 2015
    Posts
    14

    Update Table column with dates based on From - To Value

    Good Afternoon,
    Yes I fully agree with u, recordsets should my wayforward. but me to I'm not very well adept to it, and will take some time to be familiar with it, whoever I'm giving more explanations, mean time I will further explore for VBA recordsets.
    In addition to above post the "QntFrom" and "QntTo" are the number that I entering so that updatelist button will update only the records that have been selected.
    ex.
    let us say for the month of issuance I entered November-2015
    filter location Name "Central State" and
    QntFrom = 10
    QntTo= 12
    DateReceived = 11/Nov/2015
    then it should update records as per the attached screen.
    Note:instate of choose I want it to display date of received which is in my case is 11/Nov/2015. hope it clarifies.
    Once again thank you so much Gina for initiate and the support, much appreciated. Regards
    Attached Thumbnails Attached Thumbnails UpdateDS.JPG  

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

Similar Threads

  1. Update Price based on multiple column
    By JustinC in forum Access
    Replies: 3
    Last Post: 03-31-2014, 08:37 AM
  2. Replies: 4
    Last Post: 09-04-2013, 06:40 AM
  3. Replies: 1
    Last Post: 03-14-2011, 10:04 AM
  4. Replies: 1
    Last Post: 09-05-2010, 11:28 AM
  5. Replies: 2
    Last Post: 03-03-2010, 07:37 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