Combo Box won't update... and oh, how I have searched (1 Viewer)

CraigDolphin

GrumpyOldMan in Training
Local time
Today, 03:18
Joined
Dec 21, 2005
Messages
1,582
Sorry Colin. Have been struggling with another thread and hadn't checked back until now. Have attached a 'fixed' version.

Basically, the issue was that your Setr field in the invoices table was using a lookup combo and storing a text string in the field. The combo on your form was storing the numeric ID of a record in the SETR table. Comparing a text sting to an integer results in no match. Storing the text string also violates normalization principles.

So, I added and populated a true SETRID field in your invoices table and made it required. I then deleted your old SETR field and re-joined the relationship between the two tables. I went through your queries, reports and forms and did my best to re-connect everything that needed reconnecting. If you find any references to SETR ID (with a space) these are actually referencing the SETR field (text) from your SETR table.

This should hopefully fix your problem for now.

And AJE, sorry if I stepped on your toes....just thought I'd chime in since you indicated that you wouldn't have time to look at it yesterday. :)
 

Attachments

  • db2.zip
    238 KB · Views: 77

Colin@Toyota

What's an Access?
Local time
Today, 06:18
Joined
May 2, 2006
Messages
203
See, having it explained like that, I now understand what was wrong... But for me, looking at the code is somewhat overwhelming, so I wouldn't have even thought to look for something like that. Thank you both very much!
 

ajetrumpet

Banned
Local time
Today, 05:18
Joined
Jun 22, 2007
Messages
5,638
Basically, the issue was that your Setr field in the invoices table was using a lookup combo and storing a text string in the field. The combo on your form was storing the numeric ID of a record in the SETR table. Comparing a text sting to an integer results in no match.
Bingo!!
You also have a lookup box in the SETR's table with two columns in it....??
Hence, Check the Lookup object in the table's design view. :D No, it's not specified as a lookup column, but it does lookup values with it's Rowsource.

Way to go Craig!! :) As long as he gets it worked out, who cares?? You're the man...
 

Users who are viewing this thread

Top Bottom