Solved

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

Posted on 2013-11-14
3
493 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

749 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