Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

"Method of data member not found" (Access 2010)

25 views
Skip to first unread message

PW

unread,
Feb 8, 2012, 12:52:21 PM2/8/12
to
Here is a block of code I wrote in Access2003 and converted to
Access2010 and it works great:

DoCmd.OpenForm "frmGuestStorePurchases_pw"
Forms![frmGuestStorePurchases_pw]![cboReservation_pw] =
Forms![frmReservationEntry]![ReservationID]
Form_frmGuestStorePurchases_pw.cboReservation_pw_AfterUpdate

I added a new combo box on a form and copied/pasted/edited the code
above to look like this:

DoCmd.OpenForm "frmEmployeePurchases_pw"
Forms![frmEmployeePurchases_pw]![cboEmployee_pw] =
Forms![frmEmployees]![EmployeeID]
Form_frmEmployeePurchases_pw.cboEmployee_pw_AfterUpdate

But, when I compile this code I receive the error "Method of data
member not found". Why?

-kristinw

Patrick Finucane

unread,
Feb 8, 2012, 4:55:27 PM2/8/12
to
When you step thru your code which line bombs out?

PW

unread,
Feb 8, 2012, 5:36:20 PM2/8/12
to
This one:   Form_frmEmployeePurchases_pw.cboEmployee_pw_AfterUpdate

-paulw

agiamb

unread,
Feb 9, 2012, 10:02:28 AM2/9/12
to
Shouldn't that be
Forms!frmEmployeePurchases_pw.cboEmployee_pw_AfterUpdate?
And make sure that cboEmployee_pw_AfterUpdate is declared public.

--

AG
Email: npATadhdataDOTcom


"PW" <emailad...@ifIremember.com> wrote in message
news:s5u5j7t1l3oev109j...@4ax.com...

PW

unread,
Feb 9, 2012, 12:36:46 PM2/9/12
to
On Thu, 9 Feb 2012 10:02:28 -0500, "agiamb"
<NOSPAM...@newsgroup.nospam> wrote:

>Shouldn't that be
>Forms!frmEmployeePurchases_pw.cboEmployee_pw_AfterUpdate?
>And make sure that cboEmployee_pw_AfterUpdate is declared public.

My wife says that did it! Good job! Thanks.
0 new messages