Thanks a lot Lyle,
Without your help I would have never got that error corrected.
its working now :-)
If you can help me in one more error. I would be very thankful to you.
the problem is I have a Main Form and Sub Form within that Main Form.
The subform is linked through master and Child Fields with the Main
Form.
The Main Form is getting data from Buildings Table which has Primary
Key BuildingNumber and sub form is getting data from another table
BldgFloor which has Primary Key BuildingNumber and FloorLevel.
now when I click a button to open the main form it opens correctly but
when I focus from subform back to main form it throws an error
"Subquery returned more than 1 value.This is not permitted when
subquery follows =,!=,<,<=,>,>= or when subquery is used as an
expression."
I tried recreating the Master and CHild linked fields, as well as I
tried recreating the form again but no luck same error persists.
The strange thing is I have same structure database with some other
name but some what different data records in it. when I connect my adp
application to that database it doesn't gives that error and then when
I reconnect it back to same database it gives the error.
I tried checking the foreign key constraint on the tables and verified
the data but it doesn't looks bad. Also this error is not coming while
debugging the application in VBA code but comes just after that.
I have no idea whats going on. If you can suggest some things I can try
that, please let me know.
Thanks again for all your help.
Lyle Fairfield wrote:
Quote:
Shals wrote:
Quote:
Here is the code for the view:
SELECT DISTINCT
>
TTBOMK Views whose definition contains DISTINCT are not updateable.
>
As you have indicated that the table has a primary index (on Building
Number?) DISTINCT should be unnecessary.