Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

web enabled form does not open with where clause

Status
Not open for further replies.

shaunacol

Programmer
Jan 29, 2001
226
GB
I have a web enabled Access 2010 database which is hosted on sharepoint. My opening sheet shows all clients and in order to open the specific client details I have a button next to each client. the embedded macro is an OpenForm macro but when I use the where clause below I receive an error. if i take the where clause away then the form opens fine with all the records in it. Any ideas on what is wrong with my where clause


"[ClientID]=" & [ClientID]
 
I have tried everything now and am getting desperate. I am currently using the following in my where clause [ClientID]=[Forms]![Frm_ClientDetails]![ClientID]

I am now getting the following error ...the object does not contains the following object ClientID...error 2766

But it does!! Both forms contain ClientID. I have even tried renaming one of the ClientIDs to something else in case it is getting confused. Not idea what to do now.


If I click OK then I receive the following inforamtion but it doesnt help

Frm_ClientDetails, '=ClientID=' + Access.Actions.GetFormItemValue('Forms!Frm_ClientDetails!ClientID',true) + '', Edit, Dialog

Please help I have been at this for hours now. I hate web forms!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top