Results 1 to 8 of 8
  1. #1
    ksor's Avatar
    ksor is offline Competent Performer
    Windows 10 Access 2010 32bit
    Join Date
    Feb 2017
    Posts
    126

    Declaring a multidimensional const ????

    I would like to declare a multidimensional const of 11 pairs of 2 strings, but oh it hurt to find out how !



    I can get this to work:

    Dim MainFolders As String
    MainFolders = [{"BILLEDE","IMG_files"; "BO_KOMMENTAR","BO_docs"; "DELTOG_I","GUEST_docs"; "GENST_KOMMENTAR","GENST_docs"; "NOTATER","NOTAT_docs"; "PARFORHOLD","PARF_docs"; "PERSONKOMMENTAR","PERS_docs"; "STED","KMZ_files"; "STED_Beskrivelse","STED_docs"}]

    but it's NOT a const and a complete mess to look at !

    Yeah, it could be implemented with a lot of OTHER methods, but I want it as a Const ;-))

    How to do the declaring as a Const ?
    Why does the normal split line sign ( space+underscore) NOT work here ?

    2 questions = 2 answers ;-))

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,963
    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
    ksor's Avatar
    ksor is offline Competent Performer
    Windows 10 Access 2010 32bit
    Join Date
    Feb 2017
    Posts
    126
    Quote Originally Posted by ksor View Post
    I would like to declare a multidimensional const of 11 pairs of 2 strings, but oh it hurt to find out how !

    I can get this to work:

    Dim MainFolders As String
    MainFolders = [{"BILLEDE","IMG_files"; "BO_KOMMENTAR","BO_docs"; "DELTOG_I","GUEST_docs"; "GENST_KOMMENTAR","GENST_docs"; "NOTATER","NOTAT_docs"; "PARFORHOLD","PARF_docs"; "PERSONKOMMENTAR","PERS_docs"; "STED","KMZ_files"; "STED_Beskrivelse","STED_docs"}]

    but it's NOT a const and a complete mess to look at !

    Yeah, it could be implemented with a lot of OTHER methods, but I want it as a Const ;-))

    How to do the declaring as a Const ?
    Why does the normal split line sign ( space+underscore) NOT work here ?

    2 questions = 2 answers ;-))
    ... and ?

    I'll have to search around where I can get an answer ...

  4. #4
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Please read this about cross-posting https://www.excelguru.ca/content.php...-cross-posters


    You have a solution on access-programmers.......

  5. #5
    ksor's Avatar
    ksor is offline Competent Performer
    Windows 10 Access 2010 32bit
    Join Date
    Feb 2017
    Posts
    126
    Quote Originally Posted by ssanfu View Post
    Please read this about cross-posting https://www.excelguru.ca/content.php...-cross-posters


    You have a solution on access-programmers.......
    Why not just link to the solution instead of linking to a "doctors degree in Xposting" ?

  6. #6
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Why should I post a link to the solution in the other forum you posted in?
    It is OK to post in multiple forums; the point is that it is polite to post the links to the forums where you cross-posted so we don't waste our time.


    Good luck with your project.......

  7. #7
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Quote Originally Posted by ksor View Post
    Why not just link to the solution instead of linking to a "doctors degree in Xposting" ?
    Because he's trying to teach you about forum etiquette and courtesy...something you really should be aware of considering your time here and on other forums.

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  8. #8
    ksor's Avatar
    ksor is offline Competent Performer
    Windows 10 Access 2010 32bit
    Join Date
    Feb 2017
    Posts
    126
    Get yourself some bigger shoes !

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

Similar Threads

  1. declaring a Global variable
    By George in forum Forms
    Replies: 3
    Last Post: 05-24-2016, 09:33 AM
  2. Replies: 16
    Last Post: 08-14-2015, 05:32 PM
  3. Access multidimensional subform
    By ish in forum Forms
    Replies: 1
    Last Post: 01-21-2015, 07:05 PM
  4. Error Declaring FK and PK on same Line
    By jo15765 in forum SQL Server
    Replies: 0
    Last Post: 01-21-2012, 04:29 PM
  5. How to Declare Const in Access VBA
    By ped in forum Access
    Replies: 9
    Last Post: 08-07-2011, 12:14 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