Re: Combo box for data entry

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Michel Walsh (vanderghast_at_VirusAreFunnierThanSpam)
Date: 12/10/04


Date: Fri, 10 Dec 2004 07:26:29 -0500

Hi,

    You can use a filter, on the form, to limit the records to be displayed.
Through code, the syntax is:

    Me.Filter="FieldDateTimeName=" & Format( wantedDate , "\#mm-dd-yyyy\#")
    Me.FilterOn = True

    As far as detecting if you are moving past the last record, you are
generally in a mode of adding a new record, so something may be done there?
Also try to imagine a way to get out of this "mode". To remove a filter,
through code, try

    Me.FilterOn=False

Hoping it may help,
Vanderghast, Access MVP

"cursednomore" <cursednomore@discussions.microsoft.com> wrote in message
news:A7B85D8D-D63A-446C-8349-2F880DD33398@microsoft.com...
>I have a table with several fields, some of which are prepopulated. I want
>to
> be able to use a drop down box to select the date, and then get all
> records
> with that date, and only those records with that date, to perform data
> entry.
> How do I make the form stop after the last record for a date, or
> conversely,
> go to the next date after the last record with the original date?



Relevant Pages

  • Re: Dlookup random entry in table field
    ... <MS ACCESS MVP> ... > this is the syntax I'm using to lookup an entry from the field in ...
    (microsoft.public.access.formscoding)
  • Re: pivot table
    ... >I apologize for the fact that these are syntax errors...I will get it... ... > as I run my cursor over the text SUPSUBFL it shows data for that field ... >>> Duane Hookom ... >>> MS Access MVP ...
    (microsoft.public.access.queries)
  • Re: Multi-field query calculations
    ... MS Access MVP ... >Get "Data type mismatch in criteria expression" error. ... This may a problem unrelated to the IIF syntax; ... the SQL view of the query? ...
    (microsoft.public.access.queries)
  • Re: Unable to use SetValue command
    ... You haven't posted an example of what you've tried, so I am guessing that ... your syntax is wrong. ... Try this as the "control name" argument: ... Ken Snell <MS ACCESS MVP> "simon wong" wrote in message ...
    (microsoft.public.access.macros)
  • Re: Syntax error in INSERT INTO statement
    ... Duane Hookom ... > Doug Steele, Microsoft Access MVP ... >> syntax error. ... >> I apologize for the sloppy look of the cut and paste, ...
    (microsoft.public.access.modulesdaovba)