Search:

Type: Posts; User: MintFlavor

Page 1 of 3 1 2 3

Search: Search took 0.04 seconds.

  1. Re: Yet another error with sql & recordset

    There is no need to be sarcastic. I usually do mark my threads as resolved when i get solutions to my posts.
  2. Re: Yet another error with sql & recordset

    That's right..conn
  3. [RESOLVED] Yet another error with sql & recordset

    Error 3709:The connection cannot be used to perform this operation. It is either closed or invalid in this context.
    is experienced in:


    Set MyRSSave1 = New ADODB.Recordset
    sSQL =...
  4. Replies
    5
    Views
    417

    Re: Data type error

    In fact I now have a SYNTAX error in the long sql :

    sSQL = "UPDATE tblClients SET " & _
    "ClientCode = '" & Me.ClientCode & "', ClientType = '" & Me.ClientTypeText & "'," & _
    ...
  5. Re: SQL stt won't save changes to tbl

    Sorry I previously posted about recordset because it wasnt working neither.

    But now, it is kinda working..
    The changes i make on my form are being saved - except for a few times, only...
  6. Was: SQL stt won't save changes to tbl (Please tell me why recordset doesn't save)

    Option Compare Database
    Public conn As ADODB.Connection
    Public MyRSProject As ADODB.Recordset

    Private Sub imgSave_Click()
    'insert the new details in the table tblTeam
    Dim answer As...
  7. Replies
    5
    Views
    417

    Re: Data type error

    Phone number is Text type in table.
    It is entered in a textbox on the form.
  8. Replies
    5
    Views
    417

    [RESOLVED] Data type error

    Can an input mask for a phone number cause a data type error on updating with an SQL statement?
  9. Re: SQL stt won't save changes to tbl

    What is being passed is:

    UPDATE tblProject SET ClientCode = '1625', ProjectDescription = 'Auditor Nomination to be reviewed', StartedOn = '15/01/2007', EndDate = '05/03/2007', Department =...
  10. Re: SQL stt won't save changes to tbl

    Like this ?


    sSQL = "UPDATE tblProject" & _
    " SET ClientCode = '" & Me.ClientCode & "'," & _
    " ProjectDescription = '" & Me.ProjectDescription &...
  11. Re: SQL stt won't save changes to tbl

    I now have the error
    No value given for one or more required parameters.
    with


    sSQL = "UPDATE tblProject" & _
    " SET ClientCode = '" & Me.ClientCode & "'," & _
    ...
  12. [RESOLVED] SQL stt won't save changes to tbl

    Hi, i've been (and am) having a tough time changing use of recordset to use of sql stts. E.g, the code below won't save the changes on the form textboxes in the table (but doesnt give any error)...
  13. Replies
    8
    Views
    560

    Re: Error in SQL stt

    Yes of course, no need to check eof on inserting.
    Insert was one issue.

    Now, I wanted to know how u advise me to check EOF or access spacific fields for situations in my code where i am using...
  14. Replies
    12
    Views
    842

    Re: How to migrate from Access to SQL

    jsc0624

    How did u go about the migration to SQL server?
    Would u be able to keep us (me) informed of the steps u undertake and the solution to this? ->since it is quite probable that I would need...
  15. Replies
    8
    Views
    560

    Re: Error in SQL stt

    In situations where I am using an sql stt for example:

    1. Check EOF

    'check whether the user is adding a new staff or modifying
    sSQL = "SELECT tblStaff.* FROM tblStaff WHERE...
  16. Replies
    8
    Views
    560

    Re: Error in SQL stt

    The .Text part usually gives me an error that the control is not in focus and that i can't access it - that's y i was preferring not to use it.

    if
    MyRSSave1.Open sSQL, conn
    should be replaced...
  17. Replies
    8
    Views
    560

    Error in SQL stt

    Hello all,
    I have a strange error in an SQL statement saying that "Method or Data member not found" with one of the textboxes from which I am reading the value, despite that I have correctly typed...
  18. Re: 1.Data Validation and 2.Save Record (ms Access vb)

    Thank you all or your posts.

    I am making the changes you sugested me. I am trying to avoid .Find, but i have error 3705 Operation not allowed when object is open with my line:


    'do the save
    ...
  19. Re: 1.Data Validation and 2.Save Record (ms Access vb)

    The solution to the first issue seems to be the use of variables?

    Why is everyone against the use of recordset methods? :)
    In fact, it facilitates the task as concerned for me coz i'm lazy about...
  20. Re: Error on closing recordset (ms access)

    RhinoBull thanks
    The issue seems to be resolved when the line is simply removed.
  21. 1.Data Validation and 2.Save Record (ms Access vb)

    1. This is quite puzzling and very annoying when having data validation codes not working as expected.
    For example, i have a validation for checking whether either of Work OR Mobile phone was...
  22. Replies
    5
    Views
    701

    Re: What am I doing wrong?

    I did not check your lines of code. But you should be chekcing whether the user is adding or modifying exising record by finding whether the primary key on your form already exists in the table.
    If...
  23. [RESOLVED] Error on closing recordset (ms access)

    Hello,
    I'm getting error 3219 Operation is not allowed in this context. when close a recordset in my code (at the orange line)
    I have never had this error before and can't resolve it. Here follows...
  24. Re: Delete specific records (ADO - MS Access)

    :D It's working correctly now -thanks
  25. [RESOLVED] Delete specific records (ADO - MS Access)

    Set conn = CurrentProject.Connection
    Set MyRSJunior = New ADODB.Recordset
    'open the recordset.
    MyRSJunior.Open "tblTeamBuilder", conn, adOpenDynamic,...
  26. Replies
    2
    Views
    346

    Re: Independent variable

    Thanks, it's working as expected
  27. Replies
    2
    Views
    346

    [RESOLVED] Independent variable

    Hi all

    I'm looking to declare a variable with which I would be able to pass value between forms (like a parameter)
    I don't know if it should be declared public or global (it this exists in ms...
  28. Replies
    4
    Views
    354

    Re: Problem with my recordsets

    That's right i didn't set the recordset...................

    Thanks.
  29. Replies
    4
    Views
    354

    Re: Problem with my recordsets

    Sorry, didnt post. i've declared:
    Option Compare Database
    Option Explicit
    Dim strSQL1 As String
    Dim strSQL2 As String
    Dim conn As ADODB.Connection
    Dim MyRSClient As ADODB.Recordset
    Dim...
  30. Replies
    4
    Views
    354

    [RESOLVED] Problem with my recordsets

    Hello I'm having error Object variable or With block variable not set (Error 91) at line in bold. myRSClient is supposed to simply search the corresponding clientname in tblClients for the clientcode...
  31. Replies
    6
    Views
    1,403

    Re: Access - Calendar Control - popup event

    headsbout2burst
    I have a similar feature in one of my access applics. I got it from a website somewhere i dont remember. It uses a module for poping-up the calendar. It works with the on_click event...
  32. Replies
    2
    Views
    326

    MS access to MS Excel

    Hi
    Does anyone have good references of websites where I can get tutorials/examples about exporting and interpreting data from ms access to MS Excel?

    Many thanks.
  33. Replies
    1
    Views
    320

    Exporting intelligently

    Hi ppl,
    Working in ms access, i have tables storing details of assignments and people who are assigned for these jobs.

    What i want to do now is to be able to export these data to an Excel sheet...
  34. Re: Problem when using a Query as Recordsource

    Now using unbound controls and sql statements/ADO commands.
    Resolved
  35. [RESOLVED] Correct my SQL stt (wait, trying to see in FAQs)

    Can anyone help me correct syntax error(s) in the following code:



    Runtime error : Syntax error in FROM clause.

    Thank u
  36. Re: Problem when using a Query as Recordsource

    Hello
    Yes the var is declared as public. I am trying to avoid referring to the var in the query and placing an SQL stt in code. Can anyone correct syntax error in the SQL:
    strSQL = "SELECT...
  37. Re: Problem when using a Query as Recordsource

    I had indeed not opened conn.

    Well now it's indicating to me that qrySearchClient
    SELECT tblClients.ClientCode, tblClients.*, tblClients.ClientCode
    FROM tblClients
    WHERE...
  38. Re: Problem when using a Query as Recordsource

    OK I am trying the 'unbound' way.....

    So, trying to display the last record contained in the table tblClient on event Form_Load, I get error 3709: The connection cannot be used to perform this...
  39. [RESOLVED] Problem when using a Query as Recordsource

    Hi all

    I have designed my forms based on queries so that i am able to make a search and display the result on my form.

    However, initially my forms are meant for adding and modifying records....
  40. Replies
    4
    Views
    442

    Re: Must return ALL matching recs

    Al42, I have deleted all records in my tables with which i have been testing the applic. I shall check if the problem still arises when i will input fresh data and will get back to you? Thanks so much
Results 1 to 40 of 84
Page 1 of 3 1 2 3



Click Here to Expand Forum to Full Width