• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Need help creating an Access function

Another access question here..I'm creating a query using the switch function, but the one I'm creating is too complicated. As a result I'm trying to "translate" it over to a function to run, but I'm not sure how it's down.

This is the query:

Expr1: Switch(InStr([Auto-bw]![Short Description],"sheet")>0,"Sheets, Blankets and Comforters",
InStr([Auto-bw]![Short Description],"blanket")>0,"Sheets, Blankets and Comforters",
InStr([Auto-bw]![Short Description],"comforter")>0,"Sheets, Blankets and Comforters")

Which basically finds certain words in the column and converts it to a more full phrase.

And it goes on for about 20 more rules which Access says is too complicated.

How can I simply turn this into a module?
 
Last edited:
Back
Top