473,405 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

How to separate sql codes using proper format??

nurikoAnna
how to properly separate sql codes........

I am using &_ as a separator...because it will not suits the visual basic code form...it will skip to the next line that's why I am having trouble in it


Below is my code...please help me separate this using the proper separator and proper format
Expand|Select|Wrap|Line Numbers
  1. if CESDBConn.execute ("SELECT `t_application`.`PersonalInfoID`,`t_application`.` DateOfApplication`,`t_application`.`SchoolLastAtte nded`,`t_application`.`SLAAddress`,`t_application` .`GeneralAverage`,`t_application`.`CourseID`,`t_ap plication`.`SchoolYearID`,`t_personalinfo`.`FName` ,`t_personalinfo`.`MI`,`t_personalinfo`.`LName`,`t _personalinfo`.`BirthDate`,`t_personalinfo`.`Place OfBirth`,`t_personalinfo`.`Age`,`t_personalinfo`.` Gender`,`t_personalinfo`.`HomeAddress`,`t_personal info`.`ContactPerson`,`t_personalinfo`.`ContactPer sonPhone`,`t_personalinfo`.`Father`,`t_personalinf o`.`Mother`,`t_personalinfo`.`HSDateGraduated`FROM `t_application`
  2.  
  3. INNER JOIN `t_personalinfo` ON (`t_personalinfo`.`PersonalInfoID` = `t_application`.`PersonalInfoID`)
  4.  
  5. WHERE (`t_application`.`PersonalInfoID` LIKE '" & .PersonalInfoID & "') 
  6.  
  7. AND (`DateOfApplication` LIKE '" & .DateOfApplication & "') 
  8.  
  9. AND (`SchoolLastAttended` LIKE '" & .SchoolLastAttended & "') 
  10.  
  11. AND (`SLAAddress` LIKE '" & .SLAAddress & "') 
  12.  
  13. AND (`GeneralAverage` LIKE '" & .GeneralAverage & "') 
  14.  
  15. AND (`CourseID` LIKE '" & .CourseID & "') 
  16.  
  17. AND (`SchoolYearID` LIKE '" & .SchoolYearID & "') 
  18.  
  19. AND (`FName` LIKE '" & .FName & "') 
  20.  
  21. AND (`MI` LIKE '" & .MI & "') 
  22.  
  23. AND (`LName` LIKE '" & .LName & "') 
  24.  
  25. AND (`BirthDate` LIKE '" & .BirthDate & "') 
  26.  
  27. AND (`PlaceOfBirth` LIKE '" & .PlaceOfBirth & "') 
  28.  
  29. AND (`Age` LIKE '" & .Age & "') 
  30.  
  31. AND (`Gender` LIKE '" & .Gender & "') 
  32.  
  33. AND (`HomeAddress` LIKE '" & .HomeAddress & "') 
  34.  
  35. AND (`ContactPerson` LIKE '" & .ContactPerson & "') 
  36.  
  37. AND (`ContactPersonPhone` LIKE '" & .ContactPersonPhone & "') 
  38.  
  39. AND (`Father` LIKE '" & .Father & "') 
  40.  
  41. AND (`Mother` LIKE '" & .Mother & "') 
  42.  
  43. AND (`HSDateGraduated` LIKE '" & .HSDateGraduated & "')").EOF then
  44.  
Please...God bless
Nov 12 '08 #1
1 1505
Dököll
2,364 Expert 2GB
First, I added code tags for ya, then I went ahead and brought down the necessary ANDs to make it more readable.

Is this what you were after? Do stay tuned for other ideas if not:-)

Happy New Year!
Jan 1 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Yong Wang | last post by:
Hi, All: We have a network management system written in C++, MysQL, and Hp SNMP. It works in Solaris command line. When I wrote a similar python codes which call compiled C++ and mysql codes in...
31
by: Robert Brown | last post by:
Let's say I have a type hierarchy: (just an example) the general entity customer: CREATE TABLE customer(customer_id int, customer_name varchar(250), customer_type int) three specific...
6
by: Paul Fame | last post by:
Hello World, This is not a flame, but a question about the fundamentals of the language. Unlike some languages, C++ requires class member functions to be declared twice: once in the class...
7
by: Mark Waser | last post by:
Hi all, I'm trying to post multipart/form-data to a web page but seem to have run into a wall. I'm familiar with RFC 1867 and have done this before (with AOLServer and Tcl) but just can't seem...
8
by: Michael | last post by:
Hi, I think my problem deals with class casting and inheritance. I want to deal with various Audio Formats, reading into memory for modification, working with it (done by different classes),...
0
by: HKSHK | last post by:
This list compares the error codes used in VB.NET 2003 with those used in VB6. Error Codes: ============ 3: This Error number is obsolete and no longer used. (Formerly: Return without GoSub)...
0
by: surya926 | last post by:
Hello I am loading one input xml file and after manipulating the xml file the data should update in that xml file and returns the updated xml file as a output. Here my problem is i am using...
5
by: amit.uttam | last post by:
Hey everyone, I've recently jumped big time into python and I'm working on a software program for testing automation. I had a question about proper logging of output. What I would like is: 1....
10
by: anubhavjha | last post by:
Hi Friends, I have a web application through which, the ajax is used to post the data onto the server and return the results. When i alert the xmlhttp.readystate sometimes it takes long time, that...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.