Rabu, 28 Desember 2011

[MS_AccessPros] Re: Open a form without a filter that is in the code upon loading

 

What results did you get from:
DoCmd.OpenForm "TrackingSpreadsheet", , "", "LookingID = " & Me.LookingID

I would remove the "" from after the second comma.

Duane Hookom
MS Access MVP

--- In MS_Access_Professionals@yahoogroups.com, mrsgoudge <no_reply@...> wrote:
>
> Good morning/afternoon :-) again. I have a filter by form TrackingSpreadsheet that in its load event has a couple of the filter boxes filled. I would like to open that form without the filter and add a where condition. I have tried:
> DoCmd.OpenForm "TrackingSpreadsheet", , "", "LookingID = " & Me.LookingID
>
> Is the only way to do this?
> DoCmd.OpenForm "TrackingSpreadsheet"
> Forms!TrackingSpreadsheet.Filter = ""
> DoCmd.GotoControl LookingID
> DoCmd.GoToRecord "LookingID = " & Me.LookingID
>
> thanks!
> Connie
>

__._,_.___
Recent Activity:
MARKETPLACE

Stay on top of your group activity without leaving the page you're on - Get the Yahoo! Toolbar now.

.

__,_._,___

Tidak ada komentar:

Posting Komentar