Page 2 of 2 FirstFirst 12
Results 16 to 21 of 21
  1. #16
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,556

    Well I would say you should use another field that defines the sort order?

    So if you want Session fee first, then you assign that field the value 1, for Mining Fee which you want next, make that 2 etc?
    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

  2. #17
    neilsolaris is offline Competent Performer
    Windows 10 Access 2007
    Join Date
    May 2020
    Posts
    116
    Quote Originally Posted by Welshgasman View Post
    Well I would say you should use another field that defines the sort order?

    So if you want Session fee first, then you assign that field the value 1, for Mining Fee which you want next, make that 2 etc?
    I see, that make sense. I'll give it a go now and let you know how I get on.

  3. #18
    neilsolaris is offline Competent Performer
    Windows 10 Access 2007
    Join Date
    May 2020
    Posts
    116
    It worked perfectly. Thanks a lot for your help.

  4. #19
    moke123's Avatar
    moke123 is offline Me.Dirty=True
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,879
    I have a lot of sensitive information on my database, so it'll take me a while to edit it before I can take any screen captures.
    Heres a utility to randomize data in a COPY of your database. Just import the one form into a COPY of your database.
    Select the tables and fields containing sensitive data and click randomize.
    Just to be sure you dont miss my warning, do this on a COPY of your database!

    Here's what original data looks like and the randomized data preserving the first 3 letters.

    Click image for larger version. 

Name:	orig.jpg 
Views:	114 
Size:	33.3 KB 
ID:	44241Click image for larger version. 

Name:	1R.jpg 
Views:	114 
Size:	35.1 KB 
ID:	44242
    Attached Files Attached Files
    If this helped, please click the star * at the bottom left and add to my reputation- Thanks

  5. #20
    neilsolaris is offline Competent Performer
    Windows 10 Access 2007
    Join Date
    May 2020
    Posts
    116
    Quote Originally Posted by moke123 View Post
    Heres a utility to randomize data in a COPY of your database. Just import the one form into a COPY of your database.
    Select the tables and fields containing sensitive data and click randomize.
    Just to be sure you dont miss my warning, do this on a COPY of your database!

    Here's what original data looks like and the randomized data preserving the first 3 letters.

    Click image for larger version. 

Name:	orig.jpg 
Views:	114 
Size:	33.3 KB 
ID:	44241Click image for larger version. 

Name:	1R.jpg 
Views:	114 
Size:	35.1 KB 
ID:	44242

    Thanks, that'll be helpful for next time.

  6. #21
    moke123's Avatar
    moke123 is offline Me.Dirty=True
    Windows 11 Office 365
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,879
    It's been 4 years but a flaw in my code was just discovered in that users who have spaces in table and field names get errors.
    Deservedly so as you shouldn't have spaces in object names.

    the error is in this line
    Code:
    strSql = "select " & fld & " from " & tbl & " where " & fld & " is not null"
    In the attached copy it has been updated to
    Code:
    strSql = "select [" & fld & "] from [" & tbl & "] where [" & fld & "] is not null"
    here's an updated version

    DataRandomizer2025.accdb
    If this helped, please click the star * at the bottom left and add to my reputation- Thanks

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. report arrange fields
    By Arroyo in forum Reports
    Replies: 2
    Last Post: 10-05-2017, 01:39 AM
  2. Options in 'Arrange' tab greyed out
    By Bradex in forum Forms
    Replies: 1
    Last Post: 03-13-2016, 08:59 AM
  3. Replies: 2
    Last Post: 03-07-2016, 05:02 PM
  4. How to disable this annoying auto arrange?
    By Yesideez in forum Forms
    Replies: 16
    Last Post: 10-25-2013, 12:13 AM
  5. Arrange subreport
    By Ray67 in forum Reports
    Replies: 1
    Last Post: 07-25-2012, 01:34 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