Currently I have a radio button query that works for querying one field at a time. I am trying to figure out how to make the query use "OR" to query multiple fields based on the selected radio buttons. For example I would like to query to see if a service has walker and oxygen take accommodations. Below is my current code:C#: if (OxygenTank.IsChecked == true) query.Where = "OxygenTank = 'Oxygen Tank'"; else if (ServiceAnimal.IsChecked == true) query.Where = "ServiceAnimal = 'Service Animal'"; else if (Walker.IsChecked == true) query.Where = "Walker = 'Walker'";
XAML: <RadioButton x:Name="OxygenTank" Click="RadioButton_Click" GroupName="SpecialNeeds" Foreground="White" Content="Oxygen Tank"> </RadioButton> <RadioButton x:Name="ServiceAnimal" Click="RadioButton_Click" GroupName="SpecialNeeds" Foreground="White" Content="Service Animal" > </RadioButton> <RadioButton x:Name="Walker" Click="RadioButton_Click" GroupName="SpecialNeeds" Foreground="White" Content="Walker" > </RadioButton>
Any words of advice?