[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Use code to Change Form DataMode from acFormAdd to acFormEdit

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Windows Explorer lets you open cabinet (cab) files like any other folder. In VBA you can easily handle normal files and folders, but opening and indeed creating cabinet files takes a lot more - and that's you'll find here.
In a use case, a user needs to close an opened report by simply pressing the Escape (Esc) key. This can be done by adding macro code in Report_KeyPress or Report_KeyDown event.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Suggested Courses
Course of the Month20 days, 12 hours left to enroll

864 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