Hi, How to compare the text field to Table fields? :confused: Thanks
G Gemma Khan Registered User. Local time Today, 13:53 Joined Jun 29, 2009 Messages 13 Jul 7, 2009 #1 Hi, How to compare the text field to Table fields? Thanks
G Galaxiom Super Moderator Staff member Local time Tomorrow, 06:53 Joined Jan 20, 2009 Messages 12,856 Jul 7, 2009 #2 The text field on the form can be referred to by its name. From the form's Class Module: Me!controlname Use a Domain Lookup for the table field. Code:Copy to clipboard DLookUp("wantedfieldname","tablename","somefield.tablename=Forms!formname.somecontrolname")
The text field on the form can be referred to by its name. From the form's Class Module: Me!controlname Use a Domain Lookup for the table field. Code:Copy to clipboard DLookUp("wantedfieldname","tablename","somefield.tablename=Forms!formname.somecontrolname")
Max D Registered User. Local time Today, 13:53 Joined Jul 3, 2009 Messages 91 Jul 7, 2009 #3 If you need to compare text field on form to some current record field, you can reach them by their names. Lets assume you have: Table1 with (ID,Full Name) fields form tied to Table1, but without the textbox bound to Full Name field unbound textbox named Txt You can write something like this: Code:Copy to clipboard If [COLOR=RoyalBlue]Txt[/COLOR]=[COLOR=RoyalBlue]Full_Name[/COLOR] Then la-la-la...
If you need to compare text field on form to some current record field, you can reach them by their names. Lets assume you have: Table1 with (ID,Full Name) fields form tied to Table1, but without the textbox bound to Full Name field unbound textbox named Txt You can write something like this: Code:Copy to clipboard If [COLOR=RoyalBlue]Txt[/COLOR]=[COLOR=RoyalBlue]Full_Name[/COLOR] Then la-la-la...