
Signature
Dave Hargis, Microsoft Access MVP
Dave -
Got it!
I am really most grateful to you for sticking with my query.
What I found (eventually!) was a problem with the "Booked" value. This is
populated on the form via a combo which looks up the four or five status
levels in the Status table. This has only two columns: ID, and Status. The
control was showing Booked correctly when it was selected by a user. The
value Booked was storing in the Inquiries table, fine. However - the strange
thing is that the On Current code would only work when I used the ID for
Booked (which is 2) rather than the status description itself, Booked.
I guess I have got something crossed over somewhere in setting up that combo
and relating it to the lookup table and the table to store in, and the icing
on the cake would be if you can suggest where this has gone wrong - but don't
worry too much as at least I have got it working now, by using 2 instead of
Booked. It's a workaround, but hey, nobody else knows and I'm just so happy
that it works at last!!
Again, very many thanks
CW
> Do you know how to set a breakpoint and step through the code?
> I would put a breakpoint on the first line of code in the Current event and
[quoted text clipped - 64 lines]
> > > > > > Many thanks
> > > > > > CW
Klatuu - 13 Jul 2007 21:00 GMT
Great, so far
Now, the cross over thing. Based on your description, my first guess is
that you are using a combo box with at least two columns. Some place in your
code, you are assigning the value from the wrong column.
Let me know how that turns out

Signature
Dave Hargis, Microsoft Access MVP
> Dave -
> Got it!
[quoted text clipped - 83 lines]
> > > > > > > Many thanks
> > > > > > > CW