Table looks like:<br>PONumber Vendor<br>PO1022 MUW-001<br>PO9303 KEK-203<br><br>This code is attached to a ponum combo box, what I need to happen is if the ponum exists in the table, then fill the vend combo box on the form with the vendor number, otherwise, if the ponumber doesn't exist, leave the vend field blank so I can type a vendor.<br><br>Private Sub ponum_AfterUpdate()<br> Dim db As Database<br> Dim rs As Recordset<br> Dim strSeek As String<br><br> Set db = CurrentDb<br> Set rs = db.OpenRecordset("SR-SYMIXPO", dbOpenTable)<br><br> With rs<br> .Index = "PONumber"<br><br> .MoveLast<br> .MoveFirst<br> <br> strSeek = Me!ponum<br> <br> .Seek "=", Val(strSeek)<br> If .NoMatch Then<br> End Sub<br> End If<br> Me!vend = ![Vendor]<br> .close<br> End With<br> db.close<br>End Sub<br><br>thanks in advance!!<br>