A SELECT query returns the result as a browse window unless you add INTO
CURSOR xx.
A view is defined with CREATE VIEW xx AS SELECT <select statement>. The
view can be dropped on a form to create a grid but you can also set up
textboxes with the view's column as ControlSource.
As an example:
CREATE VIEW xx AS SELECT * FROM Mytable WHERE xx.date=?ldDate
In the Valid event of the textbox where the use types a date :
* Function Valid
IF NOT EMPTY(this.value)
ldDate=This.Value
REQUERY('xx')
Thisform.Refresh()
ENDIF
-Anders
Richard Marin <rich...@earthlink.net> wrote in message
news:37607ACD...@earthlink.net...