>I was clearly not clear: I want to do each of these steps programmatically.
>How do I programatically obtain the ItemID of a record on the subform by
>the content of a field in the record? I then want to replace that with
>different text, which will change base on other criteria.
>
>
> "Arvin Meyer [MVP]" <arvinm[ at ]mvps.invalid> wrote in message
> news:utj34dMXJHA.4384[ at ]TK2MSFTNGP03.phx.gbl...
>> "L.A. Lawyer" <kapplaw[ at ]linkline.com> wrote in message
>> news:e$0vIFKXJHA.5328[ at ]TK2MSFTNGP05.phx.gbl...
>>>I want to be to change or delete records on a subform based on whether or
>>> not they contain certain text strings.
>>>
>>> How do "search" for the relative records (i.e., the records that contain
>>> certain strings)?
>>>
>>> How do I obtain the ItemID from that record?
>>
>> Select the record. Use an event to refer to the ItemID, like:
>>
>> Sub Form_AfterInsert()
>> DoCmd.RunCommand acCmdSaveRecord
>> Debug.Print Me.ItemID
>> End Sub
>>
>>> How do I change the value of one or more fields in that record?
>>
>> Put the cursor in the textbox, use the Delete or Backspace key.
>>
>>> How do I delete the record if that is appropriate?
>>
>> Select the record, and hit the Delete key.
>> --
>> Arvin Meyer, MCP, MVP
>>
http://www.datastrat.com>>
http://www.mvps.org/access>>
http://www.accessmvp.com>>
>
>