User Profile

Collapse

Profile Sidebar

Collapse
Qtip23
Qtip23
Last Activity: Feb 17 '12, 10:04 PM
Joined: Apr 22 '10
Location: Washington, DC
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Qtip23
    replied to Parameter syntax error
    @NeoPa your assessment is correct. case closed.
    See more | Go to post

    Leave a comment:


  • Qtip23
    replied to Parameter syntax error
    @zepphead80 you are right. what I meant was that I took a step back and re-evaluated my whole approach to building this particular Access application.

    I used the SQL string as suggested above (without the parameters). Yet incorporated other action queries to manipulate data selected by the user, etc. Still working on this effort as we speak.
    See more | Go to post

    Leave a comment:


  • Qtip23
    replied to Parameter syntax error
    @NeoPa I did exactly as you suggested -- breakdown my SQL into smaller parts. What I am learning is the power of action queries.

    Instead of focusing on the parameters in SQL string, I have taken them out completely. I have taken another completely different approach.

    Having more success by using a combination of the control values and action queries (i.e. insert, append and delete queries) throughout my development....
    See more | Go to post

    Leave a comment:


  • Qtip23
    replied to Parameter syntax error
    After further research on Bytes and other sources, looks like there maybe an issue with the DLL's and Access 2007 when using ADO. So I am going to try DAO.

    Let me see what happens.

    Qtip23
    See more | Go to post

    Leave a comment:


  • Qtip23
    replied to Parameter syntax error
    Not having much luck with the parameters. So I am using a variable to store the value of the control.

    I have my Immediate Window open and in debug mode on the string. I see the values that I select. However, the SQL string does not run. I am receive a weird error message -- Method "Command" of object 'View" failed. What could be causing this?

    Here is the code I use to apply the SQL statement to the stored...
    See more | Go to post

    Leave a comment:


  • Qtip23
    replied to Parameter syntax error
    @Rabbit

    Thanks for the response. I tried removing just the Parameter statement first. Initially, I received a parameter pop up box when I opened the form. So I continued troubleshooting and tried the other recommendations . This proved to be a good first step.

    @Zepphead80

    Thanks for your response too. I am using ADO to connect my query results (should not matter though). I noticed that by not using any...
    See more | Go to post

    Leave a comment:


  • Qtip23
    started a topic Parameter syntax error

    Parameter syntax error

    Hello all,

    I am at a lost with troubleshooting my SQL string. I am receiving a “Syntax error in parameter clause”.

    I do not think I have exceeded the number of characters for a SQL string.

    Also ensured the semicolon after the Parameters line and inserted with “& _” on each end within my VBA code.

    All parameters are text. When I tried in Access' Query tool without parameters,...
    See more | Go to post

  • Qtip23
    replied to Data mismatch message
    @Rabbit @NeoPa
    I found the link discussing the testing/debugging items to be a wealth of information, especially the use of the debug.print throughout my code.

    I have been using it to see the values of my variables and form control selections. What I have gathered based on my complex queries is that I need to rethink my table relationships. So for now, I am going back to the drawing board (for a minute).

    Tha...
    See more | Go to post

    Leave a comment:


  • Qtip23
    replied to Prevent data field movement in subform
    Wow, it's amazing what you can find when you look a little deeper. LOL.

    Actually, I found all the properties I needed when I clicked on the subform. I opened the Property Sheet utility of Access and it had all the options I was looking for.

    There are Show by Default and Let users view options.
    I was able to deselect Field List.

    Works like a charm.

    Thanks.
    See more | Go to post
    Last edited by Qtip23; Aug 19 '11, 02:52 PM. Reason: spelling error

    Leave a comment:


  • Qtip23
    replied to Prevent data field movement in subform
    @Narender

    Hi --

    So I think what you are saying is that this feature can only be set through VBA coding, right?

    For example, something like: Graph24.Enabled = False

    Will try and see what happens.

    Thanks,
    See more | Go to post

    Leave a comment:


  • Qtip23
    replied to Data mismatch message
    So while I am not getting any syntax error messages on my SQL string after clicking on button.
    Code:
    strSQL = "SELECT tbMaster_A.* FROM tbPrograms " & _
                 "INNER JOIN tbMaster_A ON tbPrograms.GrPrgID=tbMaster_A.GrID " & _
                 "WHERE tbPrograms.[GrID] = " & strID & _
                 strCityCondition & "tbMaster_A.[City] " & strCity &
    ...
    See more | Go to post

    Leave a comment:


  • Qtip23
    replied to Data mismatch message
    Ok, so I think I am getting closer to the answer.

    I did forget to mention that this query is based on a one to many relationship.

    So, the tbPrograms is on the one side and tbMaster_A is on the many side. They are related by the GrPrgID field which is the PK of tbPrograms and FK of the tbMaster_A table.

    I went back to look at the query in Access, so now I have the following:

    Code:
    PARAMETERS
    ...
    See more | Go to post
    Last edited by Qtip23; Aug 18 '11, 06:20 PM. Reason: Finish my thought.

    Leave a comment:


  • Qtip23
    replied to Data mismatch message
    @Rabbit
    Yep, I see where you are going. Actually, the and strAreaConditio n and strCityConditio n represents the selection from the option button.

    These conditions represent a logical AND or OR.

    So let's say we have the following string variable values,
    Code:
    strID = 2 
    strCity = LA 
    strCityCondition = AND 
    strArea = East
    strAreaCondition = AND
    The query...
    See more | Go to post

    Leave a comment:


  • Qtip23
    started a topic Data mismatch message

    Data mismatch message

    I am having trouble getting my SQL string to operate correctly. I have modified an online application for my use but I think because the fields were all text. I continuously receive an Error 13: Type mismatch.

    I have three list boxes, one to capture the ID number (number), the City (text) and Area (text).
    There is a button that pulls all the responses in the following variables:

    strID
    strCity
    strArea...
    See more | Go to post

  • Qtip23
    started a topic Prevent data field movement in subform

    Prevent data field movement in subform

    Hi,

    I would like to prevent movement of the category, axis, data and filter fields of a Pivot Chart in a subform. I do not want the user to tinker and begin moving data fields (e.g. SumofTotal).

    The idea is for the user to view the displayed bar charts in this subform.

    While the subform is based on a query, I do not see any property in design view that would stop a user from manipulating these fields....
    See more | Go to post

  • It's working now. I followed some of everyone's tips.

    @Rabbit - I did not see the number two when I hovered over. Perhaps this is because I turned off the Break on All Errors.

    @Mihail @NeoPa - I ran the query in the database again. It worked like a charm.

    I think perhaps the code was getting hung up since the query is based on a form control. The query does not display anything until the parameter (e.g....
    See more | Go to post

    Leave a comment:


  • Hi Rabbit,

    I have the error trapping set to "Break on All Errors". Line 119 is highlighted.

    Not quite sure why because the query exists.

    Thx.
    See more | Go to post

    Leave a comment:


  • Qtip23
    started a topic Suddenly receiving Error #3270 - Property Not Found

    Suddenly receiving Error #3270 - Property Not Found

    Hi All,

    I have been creating a database that basically searches for data based on the SQL string created. So far, I was successful until I received -- Error Number 3270 - Property Not Found -- when I click on the button to trigger the search.

    I modified a database which I found on line for my purposes.

    See code below. How do I resolve the error message? What object is VB referring to when it says "property...
    See more | Go to post
    Last edited by Qtip23; Aug 12 '11, 12:31 PM. Reason: Keep code generic.

  • Qtip23
    started a topic Automating Pivot Charts

    Automating Pivot Charts

    How can I automate PivotChart without user intervention (e.g. drag and dropping fields into) once button click event occurs?

    Can this be done using VBA code within a report?

    Thanks,
    Qtip23
    See more | Go to post

  • Qtip23
    started a topic &nbsp is messing up Access Reports

    &nbsp is messing up Access Reports

    Hello All,

    So I have a my database information placed on a SharePoint site now that there is an immediate need for a web-based application in my division.

    I am able to print Access Reports from SharePoint but this annoying non-breaking space mark -- &nbsp -- keeps printing out as well.

    Is there a way to handle or suppress that from occuring when printing out Access reports?


    ...
    See more | Go to post
No activity results to display
Show More
Working...