Mansoor Ahmad
Registered User.
- Local time
- Today, 16:09
- Joined
- Jan 20, 2003
- Messages
- 140
Dear All
I am using following code to open a form on OnClick event of a command button.
myInt = InputBox("GIVE PIC NO", "GIVE!")
stWhere = "[PIC NO] = '" & myInt & "'"
DoCmd.OpenForm (frmName), acNormal, , stWhere
When I click on command button, it prompts to enter PIC NO, opens form but does not fetch any relevant data.
[PIC NO] field is a hyperlink field. It holds text like 124A, 34W etc.
If the problem is due to being hyperlink field, is there any changes I can make in above code so that it would filter hyperlink field.
Thanks
I am using following code to open a form on OnClick event of a command button.
myInt = InputBox("GIVE PIC NO", "GIVE!")
stWhere = "[PIC NO] = '" & myInt & "'"
DoCmd.OpenForm (frmName), acNormal, , stWhere
When I click on command button, it prompts to enter PIC NO, opens form but does not fetch any relevant data.
[PIC NO] field is a hyperlink field. It holds text like 124A, 34W etc.
If the problem is due to being hyperlink field, is there any changes I can make in above code so that it would filter hyperlink field.
Thanks