Question : Needing a block of VBA code to handling trimming and text case for Access table

I need a block of VBA code that will accomplish the following for an Access table entitled “tblMaster”:

1) Trim values under all fields for every record.

2) Convert all “Alpha” characters (letters) to Upper Case only for Field4, Field7, and Field9.

Thanks for any suggestions!

Answer : Needing a block of VBA code to handling trimming and text case for Access table

I don't believe you can use a wildcard with a multiple parameter that way.

Something like this might work

StringVar Array Input := {?AnyStringPrompt};  // replace this with your string prompt
NumberVar howmany:= count (Input);
Numbervar Index;
BooleanVar SelectFormula:= False;

For Index := 1 to howmany do
  SelectFormula := SelectFormula OR {DepartmentField} StartsWith Input[Index];

SelectFormula

mlmcc
Random Solutions  
 
programming4us programming4us