?
Solved

Use code to Change Form DataMode from acFormAdd to acFormEdit

Posted on 2008-06-12
2
Medium Priority
?
1,267 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
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 …
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Suggested Courses

743 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