Solved

Form opening in datasheet view

Posted on 2014-01-22
6
576 Views
Last Modified: 2014-01-23
I have a form opening in datasheet view via a command button on a form:

DoCmd.OpenForm "frmShipments", acFormDS, , , acFormEdit, acWindowNormal

But when the form opens I see the attached at the bottom of the form... (see attachment).

But I don't want the form to display this since it looks like a new record and I have the form properties set to not allow additions.

Is there a way to not show this apparent new record?

--Steve
Clip2.jpg
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
  • 3
  • 2
6 Comments
 

Expert Comment

by:marlind605
ID: 39800509
My first suggestion would be to create your own form and hide the navigation buttons. I have done this in the past and it allows you more flexibility.
0
 
LVL 37

Accepted Solution

by:
PatHartman earned 500 total points
ID: 39800515
Setting the AllowAdditions property to No hides the new record line so I'm not sure what you are seeing.  You've cropped the picture too tightly.  Verify the AllowAdditions property again and make sure you don't have any code that is resetting it.
0
 

Author Comment

by:SteveL13
ID: 39800565
I do have the AllowAdditions property set to No.

And I can't find any code that would be doing this.

However, I do have three DLookup field on the form.  Could that be doing it?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:SteveL13
ID: 39800572
And here is another screen shot.
Clip4.jpg
0
 
LVL 37

Expert Comment

by:PatHartman
ID: 39800804
I think you will have to post a database that just includes the form and the table/query it uses.
0
 

Author Closing Comment

by:SteveL13
ID: 39804907
After 2nd look I did find code that was resetting it.  Thanks.
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

705 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