Connecting Tech Pros Worldwide Forums | Help | Site Map

filered form shows blank fields

Newbie
 
Join Date: Jan 2007
Posts: 2
#1: Jan 20 '07
Please help me on this one.
I use the docmd.openform "frmName",,,stLinkCriteria expresion to open a form.
For example: stlinkcriteria = "[RecID] = " & 44
Although RecID = 44 exists the form opens with blank fields,but when I check the form's properties i find the filter as: [RecID] = 44.
What is wrong?
Thanks in advance for any ideas.

nico5038's Avatar
Moderator
 
Join Date: Nov 2006
Location: The Netherlands
Posts: 2,232
#2: Jan 21 '07

re: filered form shows blank fields


Check that your form has the AllowUpdates property set to True.
Looks tome you open a NewRecord form that will always be empty.
A standard new form will AllowUpdates, so create "plain" form to see the differences.

Nic;o)
dima69's Avatar
Expert
 
Join Date: Sep 2006
Location: Israel
Posts: 181
#3: Jan 21 '07

re: filered form shows blank fields


Two things I can think of:
1. RecId is not the name of a field in a form's table or query.
2. RecId has datatype which is not numeric.
Newbie
 
Join Date: Jan 2007
Posts: 2
#4: Jan 21 '07

re: filered form shows blank fields


Quote:

Originally Posted by nico5038

Check that your form has the AllowUpdates property set to True.
Looks tome you open a NewRecord form that will always be empty.
A standard new form will AllowUpdates, so create "plain" form to see the differences.

Nic;o)

Yes that did the job thanks a lot !!
nico5038's Avatar
Moderator
 
Join Date: Nov 2006
Location: The Netherlands
Posts: 2,232
#5: Jan 21 '07

re: filered form shows blank fields


You're welcome, success with your application !

Nic;o)
Reply