Re: control can't be edited it is bound to an unknown field

From: Gerald Stanley (gcstanley_at_dsl.pipex.com)
Date: 03/09/04


Date: Tue, 9 Mar 2004 14:58:46 -0800

Access is telling you that it cannot find a field called
UserId in the form's RecordSource.

Hope That Helps
Gerald Stanley MCSD
>-----Original Message-----
>Hi there,
>
>I am doing a requery on a list box and I am getting the
>above error in the title...
>
>ACCESS 2002 ADP
>SQL SERVER 2000 Back end
>
>Basically this is how it goes. I have a combo box that
>represents the user list for my website. I have a list
>box that represents the users that are allowed to access
>a particular area. Therefore the list box has to be
>generated from a stored procedure that has 2 parameters
>passed to it.
>
>The VBA code looks looks like this..
>
> Me!lst_Users.ControlSource = "UserID"
> Me!lst_Users.RowSource = "EXEC
>spGetResourceUserList " & lResourceID & "," & lLineID
> Me!lst_Users.Requery
>
>So the listbox will display the contents of the query
>fine. However, it will not let me select and gives me
>this error
>"control can't be edited it is bound to an unknown field
>UserID"
>
>However, when I show all fields that are coming through
>from the query UserID is one of them. How I check is by
>turning Display Column Heads to Yes. Displaying all 3
>columns with actual widths of 1" each. And when it gets
>listed out the column Head is "UserID" and it does have a
>row of numbers below it.
>
>What Am I missing. To me this should be easy to do. I
>must be missing something. I even have gone into the
>query and cut and paste the field name from that area
>into my code just to make sure I wasn't screwing up the
>spelling. I have removed the EXEC at which point the
>contents of the query will no longer display in the lsit
>box. Still no luck.
>
>Any Help would be appreciated.
>
>Many Thanks,
>
>Sacred
>.
>



Relevant Pages

  • Re: What record is INSERT failing on?
    ... can't automatically add the missing userid's to the userid table because they ... Userid is not a primary key in the comments table, ... one who would like to know which rec a query is failing on. ... the queries and a macro to execute them. ...
    (microsoft.public.access.externaldata)
  • Real dificult SP ... is it even possible ?
    ... I have been thinking and thinking how to do this query, ... Table two links users to cases (Users is another table, ... UserId - Integer ... I need to display on page two all cases in which the selected users are ...
    (microsoft.public.sqlserver.programming)
  • control cant be edited it is bound to an unknown field
    ... So the listbox will display the contents of the query ... turning Display Column Heads to Yes. ... What Am I missing. ...
    (microsoft.public.access.forms)
  • RE: Exporting to Excel
    ... GetUserId ... Static Function GetUserIdAs String ... 'Open the specific query with the data to be exported ... You can use this to drive a loop that will export a worksheet per userid. ...
    (microsoft.public.access.externaldata)
  • RE: Exporting to Excel
    ... I did make the Criteria for the patientid field as GetUserId() not GetUserId. ... Static Function GetUserIdAs String ... 'Open the specific query with the data to be exported ... You can use this to drive a loop that will export a worksheet per userid. ...
    (microsoft.public.access.externaldata)