Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: tbiceps
  • Order by date
  1. tbiceps

    Error with SQL statement.

    Thank you Golom!
  2. tbiceps

    Error with SQL statement.

    Is there a way to test a select query in vba or is design view/SQL view the way to go.
  3. tbiceps

    Error with SQL statement.

    Thanks Golom and JerryKlmns, as usual, I try to overthink the problem.
  4. tbiceps

    Error with SQL statement.

    How about this statement. I get a run-time error '2342' A RunSQL action requires an argument consisting of an SQL statement. DoCmd.RunSQL "SELECT t.[Report ID], f.[Full Field Name] FROM TESTTABLE t, TBL_FieldID f, TBL_Index i WHERE t.[Report ID]=i.[Report ID] AND f.[Field ID] = i.[Field ID]"
  5. tbiceps

    Error with SQL statement.

    When I run the following SQL statement in the immediate window. I get the following error: The SELECT statement includes a reserved word or an argument name that is mispelled or missing, or the punctuation is incorrect. DoCmd.RunSQL " Select TESTTABLE t, TBL_FieldID f, TBL_Index i WHERE...
  6. tbiceps

    Getting the path of a shared drive

    Thanks JerryKlmns, Using \\ServerName\Path is much simpler than what I had anticipated. Great help!
  7. tbiceps

    Working with Strings and Variables (Type Mismatch)

    Here is another example: INTO TBL_Index ([Report ID],[Field ID]) VALUES " + "('" + RptValue + "') " + "('" + UniqueFieldID + "') "
  8. tbiceps

    Working with Strings and Variables (Type Mismatch)

    I tend to have problems with syntax when mixing strings with variables. For instance, MsgBox "This is:" + variable gives me a type mismatch error or in a SQL statement. Can someone direct me to some Faq or other resource.
  9. tbiceps

    How do you post segments of code when posting a question?

    I notice when many members post code, they have a neat formatting trick which makes the code more readable on these post. Does anyone know how to perform that action.
  10. tbiceps

    Using Variable numbers in a SQL statement

    This is SQL statement that I'm using in my code. RptValue, and X represent variable that I want to alter. This SQL statement will not put the constant into the SQL string. If I try to do something similar to the following ('RptValue','X')" then I get the words not values. Does anyone have a...
  11. tbiceps

    Getting the path of a shared drive

    How would you use \\ServerName\Path?
  12. tbiceps

    Getting the path of a shared drive

    Will the GetAbsolutePathName method return directory of a shared folder. Different users in different regions access a database with different directory letter drives. I'm looking for a way to map a user's drive in an automated manner without concern of the drive letter.
  13. tbiceps

    Syntax error in CREATE TABLE statement using VBA/SQL

    Understood, Tested, and Verified! Thanks for your patience, as I learn SQL and VBA. I hope to help you two help other users in the future, as I get up to speed.
  14. tbiceps

    Syntax error in CREATE TABLE statement using VBA/SQL

    Okay Remou! For my first piece of code, my problem was with the single quotes around the names 'Martin’, 'Green’. It should be 'Martin', 'Green'. I copied code directly from online tutorial. For the second piece of code, the problem was with the quotation mark at the end of the sentence...
  15. tbiceps

    Syntax error in CREATE TABLE statement using VBA/SQL

    When I eliminate the first two parameters ('Martin’, 'Green’) it works. I don't quite understand. Sometimes I need a semicolon, but at other times I don't. Remou (TechnicalUser) 7 Mar 06 10:13 I do not think it likes the semicolon: DoCmd.RunSQL "CREATE TABLE tblTest ([StaffID] COUNTER...

Part and Inventory Search

Back
Top