Solved

How open form using query as its record source and in continuous mode?

Posted on 2013-11-14
3
486 Views
Last Modified: 2013-11-14
I have a form that normally opens as a single form and uses a table as its record source.  But I want to also be able to open the form from a command button on a menu form in continuous mode and use a query as it's record source.

How do I code this?
0
Comment
Question by:SteveL13
  • 2
3 Comments
 
LVL 61

Accepted Solution

by:
mbizup earned 500 total points
ID: 39648042
You can't switch a form from single form view to continuous forms at runtime.  That is a design-view only option.

So, create a form similar to your original (you can even copy it) and set your query as its recordsource. Set the default view to continuous forms.

Then just open it like any other form:

Docmd.OpenForm "YourContinuousFormName"
0
 

Author Comment

by:SteveL13
ID: 39648070
Ok.  But that's a shame because if I make a design change in one I have to make the same change in the other one.  Oh well.

Thanks much.
0
 
LVL 61

Expert Comment

by:mbizup
ID: 39648100
The alternative is data sheet view, which CAN be set at runtime...
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question