Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Don't know where to put this. ACCESS! PLEASE HELP

Don't know where to put this. ACCESS! PLEASE HELP

Scheduled Pinned Locked Moved Visual Basic
databasehelp
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rip V Winkle
    wrote on last edited by
    #1

    I'm am working on a database in MS Access 2000. I have imported data from a text file. Their are now two fields that imported in to a table: Title and Subtitle I want to make a macro or query (anything that is automatic) to combine the two values (Title and Subtitle) into one (MyTitle) for all the records (about 2,953). Thank you in advance. -Peace

    K 1 Reply Last reply
    0
    • R Rip V Winkle

      I'm am working on a database in MS Access 2000. I have imported data from a text file. Their are now two fields that imported in to a table: Title and Subtitle I want to make a macro or query (anything that is automatic) to combine the two values (Title and Subtitle) into one (MyTitle) for all the records (about 2,953). Thank you in advance. -Peace

      K Offline
      K Offline
      KevinMac
      wrote on last edited by
      #2

      Not sure if this is what you are looking for but. UPDATE yourtable SET main.combinedfield = [yourtable]![Title] & " " & [YourTable]![SubTitle];

      R 1 Reply Last reply
      0
      • K KevinMac

        Not sure if this is what you are looking for but. UPDATE yourtable SET main.combinedfield = [yourtable]![Title] & " " & [YourTable]![SubTitle];

        R Offline
        R Offline
        Rip V Winkle
        wrote on last edited by
        #3

        Where do I put this code? I am trying to get it to update the field (if it needs to be updated) when the form is open. Or if I can make a macro that would do it.

        K 1 Reply Last reply
        0
        • R Rip V Winkle

          Where do I put this code? I am trying to get it to update the field (if it needs to be updated) when the form is open. Or if I can make a macro that would do it.

          K Offline
          K Offline
          KevinMac
          wrote on last edited by
          #4

          I am not sure of your situation but I would suggest using the Acces macro builder and use the formrun or similar event to fire the import. The code is all VBA or VBscript so you may even find some code on Google that will do it for you. If you are importing this file every time the app opens you may need to work out a different strategy since this could eventually lead to errors. Good luck and I hope it helps.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups