A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Retreive data from text box and sort



 
 
Thread Tools Display Modes
  #1  
Old October 31st, 2008, 03:51 PM posted to microsoft.public.access
Carl_and_Earl[_2_]
external usenet poster
 
Posts: 23
Default 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  
Old October 31st, 2008, 04:17 PM posted to microsoft.public.access
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default 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  
Old October 31st, 2008, 04:28 PM posted to microsoft.public.access
Arvin Meyer [MVP][_2_]
external usenet poster
 
Posts: 2,310
Default 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  
Old October 31st, 2008, 04:46 PM posted to microsoft.public.access
Carl_and_Earl[_2_]
external usenet poster
 
Posts: 23
Default 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  
Old October 31st, 2008, 05:45 PM posted to microsoft.public.access
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default 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  
Old October 31st, 2008, 06:30 PM posted to microsoft.public.access
Carl_and_Earl[_2_]
external usenet poster
 
Posts: 23
Default 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  
Old October 31st, 2008, 07:21 PM posted to microsoft.public.access
Carl_and_Earl[_2_]
external usenet poster
 
Posts: 23
Default Retreive data from text box and sort

http://img55.imageshack.us/my.php?image=wrongky4.jpg
  #8  
Old October 31st, 2008, 07:53 PM posted to microsoft.public.access
Carl_and_Earl[_2_]
external usenet poster
 
Posts: 23
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:46 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.