Microsoft
Software
Hardware
Network
Question : Need to query if a field starts with "+1"
Using C# and Access, I need to write extend my query to validate that a text field starts with "+1"
Curently here's the query. lastMessageId is an int value.
sql = "SELECT * FROM messages WHERE message_id > " + lastMessageId.ToString();
I need to learn the syntax for this validation. The field with the strings is called "frm"
in C# I'd say where frm.StartsWith("+1");
But I tell you this so you will understand what I am tryig to accomplish with SQL.
Thanks,
newbieweb
Answer : Need to query if a field starts with "+1"
sql = "SELECT * FROM messages WHERE message_id > " + lastMessageId.ToString() + " AND frm LIKE '+1%'";
Random Solutions
Passing Parameters to Crystal Reports
Getting total number of days in a Month
Send Emails Via MS Access Form
Exchange 2010 Management Console: Initialization failed
How to Create query from selction made in a drop down list.Acees 2007
Formul “=SUMPRODUCT” lost focus
How to setup scan to e-mail using LDAP on Minolta Bizhub 350
Can't find forwarding rule Exchange 2003 in Windows 2003 SBS
Hiding Network Folders
MYSQL first day (or month) of the current quarter and previous quarter