Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Use code to Change Form DataMode from acFormAdd to acFormEdit

Posted on 2008-06-12
2
Medium Priority
?
1,287 Views
Last Modified: 2013-11-28
I have a form (which is opened by a Not In List event in another form) which opens in DataMode:acFormAdd  
I'd like to create a control button on the form so that the the user can switch to acFormEdit.

Can it be done?  What code do I need for my control button?
0
Comment
Question by:Ludique
[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
2 Comments
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 2000 total points
ID: 21776691
Ludique,

You have to make sure this is what you want.

The form "probably" opens in acFormAdd mode so you can enter a new item for the list.
While in add mode you can edit the current record.

Lots of strange things can happen if you change the From mode at the wrong time.

Can you explain what you are trying to do?

JeffCoachman
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 21842267
Thanks,

But for the sake of ayone else searching here with a similar issue, can you state how my post help solve your issue?

Thanks

JeffCoachman
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

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

This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
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…

618 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