Results 1 to 3 of 3
  1. #1
    MTSPEER is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2013
    Posts
    283

    Finding First of the Month

    Hello,



    I have a field(Field1) set up in the date format yyyymmdd. I am trying to find the first of next month for whatever date is in that field. For example 20170403 to 20170501. Thank you!

  2. #2
    jwhite is offline Competent Performer
    Windows 10 Access 2013 32bit
    Join Date
    Dec 2012
    Location
    North Carolina
    Posts
    349
    I can only assume "Field1" is a text data type. If so: dateserial(left("20170403",4),mid("20170403",5,2)+ 1,1). Does it have to be returned in the same format? If so, then: format(dateserial(left("20170403",4),mid("20170403 ",5,2)+1,1),"yyyymmdd")

    Replace the literal string date with your variable/field name.

  3. #3
    MTSPEER is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2013
    Posts
    283
    Thank you very much!

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

Similar Threads

  1. Replies: 3
    Last Post: 12-29-2014, 10:14 AM
  2. Replies: 5
    Last Post: 10-08-2014, 02:23 PM
  3. Replies: 43
    Last Post: 08-06-2014, 08:21 PM
  4. Replies: 6
    Last Post: 05-05-2014, 10:51 PM
  5. Replies: 5
    Last Post: 11-15-2010, 06:12 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