Results 1 to 11 of 11
  1. #1
    erickfloyd's Avatar
    erickfloyd is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Nov 2017
    Posts
    18

    Lightbulb I can't set a date from a form textbox in to make table query

    I can't set a date from a form textbox in to make table query



    I use this: FECHA_INI: [Forms]![VALIDAR PANEL]![Text3]

    But when i run the query in the new table the column FECHA_INI looks empty, and i have a date in my form [Text3]

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Have you hit Enter or Tab after entering the date to commit the value?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    erickfloyd's Avatar
    erickfloyd is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Nov 2017
    Posts
    18
    yes, bus still blank in new table;

    Click image for larger version. 

Name:	Untitled.jpg 
Views:	7 
Size:	281.5 KB 
ID:	31214

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Can you attach the db here?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    erickfloyd's Avatar
    erickfloyd is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Nov 2017
    Posts
    18
    Ups! I don't think so it's 500MB and linked to my system, this is the form when a try to get the date;

    Click image for larger version. 

Name:	FORM1.jpg 
Views:	9 
Size:	237.0 KB 
ID:	31215

  6. #6
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,933
    On the basis you are expecting a date are you sure Text3 is the name of the control next to the label Fecha Inicial and not the one above the actualizar bom button? You would be well advised to give your controls a relevant name - would also help us to help you

    It is also likely the field in the new table will be text and not datetime - is this what you require?

  7. #7
    erickfloyd's Avatar
    erickfloyd is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Nov 2017
    Posts
    18
    Yes I'm really shure that's name is correct for the date textbox and regarding the format in new table a change it in the design make atable query but when a look the new table design appear like binary format

    Click image for larger version. 

Name:	newtable.png 
Views:	6 
Size:	214.7 KB 
ID:	31216

  8. #8
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Perhaps try wrapping the form reference in the CDate() function?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  9. #9
    erickfloyd's Avatar
    erickfloyd is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Nov 2017
    Posts
    18
    Woohoo!!! Done!! You rock!!! Thanks!!!

  10. #10
    erickfloyd's Avatar
    erickfloyd is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Nov 2017
    Posts
    18
    One more thing, they are two more columns still on binary format and I need one as a number and other as a text format, do you know some function to change the format of those?

  11. #11
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    CStr() for text, several others for various numeric data types: CLng(), CDbl(), etc.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 3
    Last Post: 03-12-2017, 08:29 PM
  2. Replies: 1
    Last Post: 07-31-2016, 03:13 AM
  3. Replies: 6
    Last Post: 02-26-2016, 05:28 AM
  4. Replies: 2
    Last Post: 12-22-2015, 09:09 PM
  5. Replies: 2
    Last Post: 08-06-2011, 12:19 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