Results 1 to 5 of 5
  1. #1
    Gregm66 is offline Advanced Beginner
    Windows 10 Access 2013 32bit
    Join Date
    Sep 2016
    Posts
    36

    TextBox Question

    Hi All,

    My question is


    if I have 2 textboxes called txtName and the second called txtImage, is it possible to get txtImage to duplicate what is typed into txtName and add the file name extension .jpg? Automatically without the user having to type it in.

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    I would probably have the user type only the file extension into txtImage. Then, in a query I would concatenate the two columns. With that alias in the query, you could create a new column or update the existing.

    If you are working in a form, you could have VBA update a field in a table. Also, you will probably want to run some validation code to make sure the extension is spelled correctly.

  3. #3
    Gregm66 is offline Advanced Beginner
    Windows 10 Access 2013 32bit
    Join Date
    Sep 2016
    Posts
    36
    thanks for your input ItsMe,
    I might just stick with the user to add the file name plus extension, I'm having enough trouble getting my addnewform to work.
    excel I can do this all day long but access I'm still learning.

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    Well, Access is not for everybody. But, I cannot running a business that does not depend on relational databases. I say, don't give up yet. You have to be able to let go of Excel and understand it takes time to learn relational database theory.

  5. #5
    Gregm66 is offline Advanced Beginner
    Windows 10 Access 2013 32bit
    Join Date
    Sep 2016
    Posts
    36
    lol thanks ItsMe, I have no intention of letting this go its a whole new learning process that I have to go through I am slowing starting to understand how it works, it will just take time. I have a million questions bur I guess they are for another thread.

    I have built this same project in excel as well as open office calc, but I do need to understand access to make this project more easily re distributed.

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

Similar Threads

  1. Replies: 2
    Last Post: 12-22-2015, 09:09 PM
  2. Replies: 2
    Last Post: 04-20-2013, 03:37 AM
  3. Textbox ControlSource Question
    By RonL in forum Forms
    Replies: 4
    Last Post: 02-16-2013, 12:18 AM
  4. Replies: 5
    Last Post: 04-19-2012, 10:41 AM
  5. New to VBA - Textbox/ List question
    By dreamnauta in forum Programming
    Replies: 6
    Last Post: 12-21-2011, 01:41 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