|
||||||
|
Named Arguments By Richard Rost 12 months ago Named Arguments in Microsoft Access VBA In this Microsoft Access tutorial, we're going to learn how to use named arguments in our VBA procedure calls for increased flexibility and readability, and to prevent having to smash the comma key so many times to get to the end of the parameter list. Bryce from Apex, North Carolina (a Platinum Member) asks: I wrote a function that I call CreateCustomer and I use it in several places in my code to create a new customer record based on a lead. The function accepts a whole bunch of parameters, including name, address, phone number, and so on, but sometimes I only want to specify name and phone number, and I've got to enter a million commas to get to the end of the parameter list to enter the phone number. Is there an easier and shorter way to write that function call? PrerequisitesLinksRecommended Courses
KeywordsTechHelp Access 2016, Access 2019, Access 2021, Access 365, Microsoft Access, MS Access, MS Access Tutorial, #msaccess, #microsoftaccess, #help, #howto, #tutorial, #learn, #lesson, #training, #database, named arguments, Access VBA, readability improvement, CreateCustomer function, specifying parameters, calling functions, efficient coding, best practices, refactoring code, optional parameters, optimizing functions, maintainable code, user-defined functions, arguments in functions, developer productivity, form automation, VBA tricks, function parameters.
|
||||
| |||
Keywords: TechHelp Access 2016, Access 2019, Access 2021, Access 365, Microsoft Access, MS Access, MS Access Tutorial, #msaccess, #microsoftaccess, #help, #howto, #tutorial, #learn, #lesson, #training, #database, named arguments, Access VBA, readability improvement PermaLink Using Named Arguments in Microsoft Access VBA for Increased Flexibility and Readability |