You need something similar to the following code. Put this in the click event of your command button.
Dim LinkFilter as string
Dim FormName as string
LinkFilter = ""
if not(isnull(me!clientid)) then
LinkFilter = "[Clientid] = " & Me!clientID
end if
FormName = <your form>
DoCmd.OpenForm FormName, acNormal, , LinkFilter