JithuAccess
Member
- Local time
- Today, 09:31
- Joined
- Mar 3, 2020
- Messages
- 325
Hello Guys,
I want to display File Name from my Table tblFileBasic in to a Text in my Form frmFileRequest if the File Number in the text box of the Form matches the File Number in the Table.
This is my Code:
	
	
	
		
I am getting Error Message like "Too Few Parameters.."
I think I should add a single quotes in where but I am not so sure how to add this. I tried Ampersand but it's not working.
Thanks
 I want to display File Name from my Table tblFileBasic in to a Text in my Form frmFileRequest if the File Number in the text box of the Form matches the File Number in the Table.
This is my Code:
		Code:
	
	
	Dim db As Database
Dim rst As Recordset
Dim strsql As String
strsql = "Select File_Name from tblFileBasic where (tblFileBasic.File_Number = Forms!frmFileRequest!File_Number)"
Set db = CurrentDb
Set rst = db.OpenRecordset(strsql, dbOpenDynaset)
Text15 = rst.Fields(0)I am getting Error Message like "Too Few Parameters.."
I think I should add a single quotes in where but I am not so sure how to add this. I tried Ampersand but it's not working.
Thanks
 
	 
 
		 
 
		 
 
		