A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

continuous form mode



 
 
Thread Tools Display Modes
  #1  
Old July 9th, 2009, 04:26 PM posted to microsoft.public.access
alex
external usenet poster
 
Posts: 581
Default continuous form mode

Using Access ’03…

Is there a way to programmatically open a form in continuous form
mode?

DoCmd.OpenForm(...continuous forms)

I’ve done some searching and it doesn’t appear so.

Thanks,
alex
  #2  
Old July 9th, 2009, 04:39 PM posted to microsoft.public.access
Douglas J. Steele[_3_]
external usenet poster
 
Posts: 3,143
Default continuous form mode

Do you mean Datasheet view?

DoCmd.OpenForm "NameOfForm", acFormDS

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"alex" wrote in message
...
Using Access ’03…

Is there a way to programmatically open a form in continuous form
mode?

DoCmd.OpenForm(...continuous forms)

I’ve done some searching and it doesn’t appear so.

Thanks,
alex


  #3  
Old July 9th, 2009, 05:14 PM posted to microsoft.public.access
alex
external usenet poster
 
Posts: 581
Default continuous form mode

On Jul 9, 11:39*am, "Douglas J. Steele"
wrote:
Do you mean Datasheet view?

DoCmd.OpenForm "NameOfForm", acFormDS

--
Doug Steele, Microsoft Access MVPhttp://I.Am/DougSteele
(no e-mails, please!)

"alex" wrote in message

...
Using Access ’03…

Is there a way to programmatically open a form in continuous form
mode?

DoCmd.OpenForm(...continuous forms)

I’ve done some searching and it doesn’t appear so.

Thanks,
alex


Hi Doug,

I’m talking about the same view as Properties Default View
Continuous Forms.

My database/form is setup to only display one record per form (in
single form view). Sometimes there are quasi duplicate records and
continuous forms is a good way to show multiple records on one screen.

alex
  #4  
Old July 9th, 2009, 05:55 PM posted to microsoft.public.access
Douglas J. Steele[_3_]
external usenet poster
 
Posts: 3,143
Default continuous form mode

When you create the form, you have to indicate whehter it's Single Form,
Continuous Form or Datasheet. That means that the Form view can only be
either Single Form or Continuous Form.

You could use code like this

Sub OpenFormView(FormName As String, FormView As Long)
Dim frm As Form

If FormView = 0 Or FormView = 1 Or FormView = 2 Then
DoCmd.OpenForm FormName, acDesign
Set frm = Forms(FormName)
frm.DefaultView = FormView
DoCmd.Close acForm, FormName, acSaveYes
Set frm = Nothing
DoCmd.OpenForm FormName, acNormal
End If

End Sub

To open the form in Single Form view, you'd use

OpenFormView "MyFormName", 0

To open the form in Continuous Form view, you'd use

OpenFormView "MyFormName", 1


Note that this will only work if your application is properly split into a
front-end (containing the queries, forms, reports, macros and modules)
linked to a back-end, with each user having his/her own copy of the
front-end.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"alex" wrote in message
...
On Jul 9, 11:39 am, "Douglas J. Steele"
wrote:
Do you mean Datasheet view?

DoCmd.OpenForm "NameOfForm", acFormDS

"alex" wrote in message


I’m talking about the same view as Properties Default View
Continuous Forms.

My database/form is setup to only display one record per form (in
single form view). Sometimes there are quasi duplicate records and
continuous forms is a good way to show multiple records on one screen.

alex


  #5  
Old July 9th, 2009, 06:49 PM posted to microsoft.public.access
zain
external usenet poster
 
Posts: 1
Default continuous form mode



de de ze groep was is er aan
  #6  
Old July 10th, 2009, 11:21 AM posted to microsoft.public.access
alex
external usenet poster
 
Posts: 581
Default continuous form mode

On Jul 9, 12:55*pm, "Douglas J. Steele"
wrote:
When you create the form, you have to indicate *whehter it's Single Form,
Continuous Form or Datasheet. That means that the Form view can only be
either Single Form or Continuous Form.

You could use code like this

Sub OpenFormView(FormName As String, FormView As Long)
Dim frm As Form

* If FormView = 0 Or FormView = 1 Or FormView = 2 Then
* * DoCmd.OpenForm FormName, acDesign
* * Set frm = Forms(FormName)
* * frm.DefaultView = FormView
* * DoCmd.Close acForm, FormName, acSaveYes
* * Set frm = Nothing
* * DoCmd.OpenForm FormName, acNormal
* End If

End Sub

To open the form in Single Form view, you'd use

OpenFormView "MyFormName", 0

To open the form in Continuous Form view, you'd use

OpenFormView "MyFormName", 1

Note that this will only work if your application is properly split into a
front-end (containing the queries, forms, reports, macros and modules)
linked to a back-end, with each user having his/her own copy of the
front-end.

--
Doug Steele, Microsoft Access MVPhttp://I.Am/DougSteele
(no e-mails, please!)

"alex" wrote in message

...
On Jul 9, 11:39 am, "Douglas J. Steele"

wrote:
Do you mean Datasheet view?


DoCmd.OpenForm "NameOfForm", acFormDS


"alex" wrote in message


I’m talking about the same view as Properties Default View
Continuous Forms.

My database/form is setup to only display one record per form (in
single form view). *Sometimes there are quasi duplicate records and
continuous forms is a good way to show multiple records on one screen.

alex


Thanks Doug. I'll give this a try.
alex
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:25 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.