S 
		
				
			
		sraymake
Guest
I have a problem with creating a QBF in VBA code. 
In my case I want to apply a filter to a table that selects the records "= 4,2", as you see a decimal number. I want to do this through a form where the user can fill this in, and then click the created search button.
This button calls a procedure that first selects the filled in field value 4,2 and afterwards creates the WHEREcondition. The condition is created as follows:
strTemp = "((" & "Thdsize" = Thdsize_FieldValue & "))"
and looks like "((Thdsize = 4,2))". When this filter is applied to the table with "DoCmd.OpenForm" it goes wrong. The filters selects no records. It only works when I fill in the WHEREcondition manually as follows: "((Thdsize = 4.2))" --> WATCH THE DECIMAL SIGN.
Does anybody know where this problem is comming from and how I can manage it?
Thanx in advance
Stijn Raymakers
 In my case I want to apply a filter to a table that selects the records "= 4,2", as you see a decimal number. I want to do this through a form where the user can fill this in, and then click the created search button.
This button calls a procedure that first selects the filled in field value 4,2 and afterwards creates the WHEREcondition. The condition is created as follows:
strTemp = "((" & "Thdsize" = Thdsize_FieldValue & "))"
and looks like "((Thdsize = 4,2))". When this filter is applied to the table with "DoCmd.OpenForm" it goes wrong. The filters selects no records. It only works when I fill in the WHEREcondition manually as follows: "((Thdsize = 4.2))" --> WATCH THE DECIMAL SIGN.
Does anybody know where this problem is comming from and how I can manage it?
Thanx in advance
Stijn Raymakers