Form setup

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

In respect to a call log database, is there a way for the form to display
only the last entry and a new entry field.
thanks
 
austin said:
In respect to a call log database, is there a way for the form to
display only the last entry and a new entry field.
thanks

Base the form on a query that sorts on the CallDate in descending order and
then set the query to return only the top 1 record (it's in the property
sheet).
 
In
austin said:
In respect to a call log database, is there a way for the form to
display only the last entry and a new entry field.

Yes, so long as there's something in the data that identifies which
record is the "last entry". For example, suppose you have a table named
"CallRecords", and each record in that table has a date/time field named
"CallDateTime", which is set to Now() when the record is saved. Thus,
the record with the maximum value in that field is the latest entry.
Given such a table, you could bind your form to a query like this:

SELECT *
FROM CallRecords
WHERE CallDateTime =
(SELECT Max(CallDateTime) FROM CallRecords);

You would need to requery the form after adding each new record.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top