Results 1 to 4 of 4
  1. #1
    vazdajic is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2016
    Posts
    95

    Auto Increased Value

    Hello everybody.. As everything is explained on the picture below, please assist if you can.



    Thanks.

    Click image for larger version. 

Name:	Auto Increased Value.jpg 
Views:	33 
Size:	290.5 KB 
ID:	29454

  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,902
    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
    vazdajic is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2016
    Posts
    95
    Hm.. Too complicated for me, to be honest.. Any simpler solution?

  4. #4
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Create a query for the number part of the req (Right(RT_Req,4))

    Create a variable for the req nbr
    - Dim ReqNbr as Integer, RTReq AS String
    - ReqNbr=CInt(Dlookup("Max(RT_REQ_NBR)","queryname") + 1
    - RTReq="RT-" & Format(ReqNbr,"0000")

    Create a variable string
    - Dim strSQL as String

    Populate it with an UPDATE query
    - strsql="UPDATE ...."
    (create the query in query design, get it working, then copy and paste the SQL to here)
    Change the update of RT_Req to: '" & RTReq & "'

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

Similar Threads

  1. Replies: 2
    Last Post: 12-29-2016, 11:42 AM
  2. Auto complete & auto add
    By Pete Moss in forum Forms
    Replies: 3
    Last Post: 12-19-2015, 11:40 AM
  3. Replies: 6
    Last Post: 12-16-2012, 08:43 AM
  4. Replies: 3
    Last Post: 11-04-2011, 01:50 PM
  5. Auto Run Report then Auto Email
    By jo15765 in forum Reports
    Replies: 1
    Last Post: 10-05-2011, 10:57 AM

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