If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Retreive data from text box and sort
I want to retreive data from the text box "Expirare" and sort that date
descending in the right list box. Seems simple but I don't know how to do that. Thanks. http://img407.imageshack.us/my.php?image=accessia1.jpg |
#2
|
|||
|
|||
Retreive data from text box and sort
Data isn't stored in a textbox in Access. Data is stored in tables.
If you want to list dates, use a query to retrieve (and sort) the dates from a field in a table. Regards Jeff Boyce Microsoft Office/Access MVP "Carl_and_Earl" wrote in message ... I want to retreive data from the text box "Expirare" and sort that date descending in the right list box. Seems simple but I don't know how to do that. Thanks. http://img407.imageshack.us/my.php?image=accessia1.jpg |
#3
|
|||
|
|||
Retreive data from text box and sort
Probably the easiest way is to use a query for the list box which reads from
the form, something like: SELECT tblMyData.DateField FROM tblMyData WHERE (((tblMyData.DateField)=[Forms]![tblMyData]![Expirare])); Then requery when or if you change the textbox. -- Arvin Meyer, MCP, MVP http://www.datastrat.com http://www.mvps.org/access http://www.accessmvp.com "Carl_and_Earl" wrote in message ... I want to retreive data from the text box "Expirare" and sort that date descending in the right list box. Seems simple but I don't know how to do that. Thanks. http://img407.imageshack.us/my.php?image=accessia1.jpg |
#4
|
|||
|
|||
Retreive data from text box and sort
At first, I wanted to do how you told me, but I also wanted the date to be
dd/mm/yyyy type and couldn't do that, so I changed to text. "Jeff Boyce" wrote: Data isn't stored in a textbox in Access. Data is stored in tables. If you want to list dates, use a query to retrieve (and sort) the dates from a field in a table. Regards Jeff Boyce Microsoft Office/Access MVP "Carl_and_Earl" wrote in message ... I want to retreive data from the text box "Expirare" and sort that date descending in the right list box. Seems simple but I don't know how to do that. Thanks. http://img407.imageshack.us/my.php?image=accessia1.jpg |
#5
|
|||
|
|||
Retreive data from text box and sort
Access treats text differently than date/time values. If you want to see a
date/time value displayed as you describe, don't change it to text, just use the format property (or function). Regards Jeff Boyce Microsoft Office/Access MVP "Carl_and_Earl" wrote in message ... At first, I wanted to do how you told me, but I also wanted the date to be dd/mm/yyyy type and couldn't do that, so I changed to text. "Jeff Boyce" wrote: Data isn't stored in a textbox in Access. Data is stored in tables. If you want to list dates, use a query to retrieve (and sort) the dates from a field in a table. Regards Jeff Boyce Microsoft Office/Access MVP "Carl_and_Earl" wrote in message ... I want to retreive data from the text box "Expirare" and sort that date descending in the right list box. Seems simple but I don't know how to do that. Thanks. http://img407.imageshack.us/my.php?image=accessia1.jpg |
#6
|
|||
|
|||
Retreive data from text box and sort
I had already tried formating, but I didn't succeed. Maybe I didn't try enough.
"Jeff Boyce" wrote: Access treats text differently than date/time values. If you want to see a date/time value displayed as you describe, don't change it to text, just use the format property (or function). Regards Jeff Boyce Microsoft Office/Access MVP |
#7
|
|||
|
|||
Retreive data from text box and sort
|
#8
|
|||
|
|||
Retreive data from text box and sort
http://img55.imageshack.us/my.php?image=wrongky4.jpg
I must be doing something wrong. "Jeff Boyce" wrote: Access treats text differently than date/time values. If you want to see a date/time value displayed as you describe, don't change it to text, just use the format property (or function). Regards Jeff Boyce Microsoft Office/Access MVP "Carl_and_Earl" wrote in message ... At first, I wanted to do how you told me, but I also wanted the date to be dd/mm/yyyy type and couldn't do that, so I changed to text. "Jeff Boyce" wrote: Data isn't stored in a textbox in Access. Data is stored in tables. If you want to list dates, use a query to retrieve (and sort) the dates from a field in a table. Regards Jeff Boyce Microsoft Office/Access MVP "Carl_and_Earl" wrote in message ... I want to retreive data from the text box "Expirare" and sort that date descending in the right list box. Seems simple but I don't know how to do that. Thanks. http://img407.imageshack.us/my.php?image=accessia1.jpg |
Thread Tools | |
Display Modes | |
|
|