Page 2 of 2 FirstFirst 12
Results 16 to 26 of 26
  1. #16
    glen is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    171
    My codes.


    Private Sub Combo7_Enter()
    If Nz(Me.Combo7, "") = "" Then
    DoCmd.GoToRecord , , acNewRec
    End If
    End Sub

    Private Sub Form_Load()
    DoCmd.GoToRecord , , acNewRec
    End Sub

  2. #17
    glen is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    171
    Ohhh I forgot to tell you that when this problem happen.
    check attachment of post no.1 https://www.accessforums.net/forms/r...tml#post130060
    I changed combo box of Location into text box.
    from then this problem occur

  3. #18
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    While viewing a code page go to Debug>Compile and see what happens.

  4. #19
    glen is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    171
    Compile command is not active.

  5. #20
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    enter a space in a non important location in the code and then Compile.

  6. #21
    glen is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    171
    I did but nothing happen.
    where i put space the cursor go there.
    I also put space in unimportant location then nothing happened.
    But database is working properly now.for the last one hour i opened my database many time but the error message not coming now.
    can you tell me about "on error go to." code?
    Is it important for every vb programming codes?
    and what is it procedure?

  7. #22
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    When you put in the space, did it enable the Compile?

  8. #23
    glen is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    171
    yeah in some places when i put space it enable compile.

  9. #24
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    And then it compiles without error, correct?

  10. #25
    glen is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    171
    yeah compile without error.

  11. #26
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Here's a good article on Error Handling: http://allenbrowne.com/ser-23a.html

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. RecordSource sql stays
    By rashima in forum Forms
    Replies: 0
    Last Post: 04-20-2012, 05:56 AM
  2. recordsource - inquiry
    By myboii1984 in forum Forms
    Replies: 4
    Last Post: 04-02-2012, 08:11 AM
  3. RecordSource Error
    By scampbell in forum Programming
    Replies: 7
    Last Post: 11-10-2011, 11:28 AM
  4. Export Recordsource
    By Paul H in forum Reports
    Replies: 2
    Last Post: 10-27-2011, 01:47 PM
  5. RecordSource help
    By mann2x in forum Access
    Replies: 3
    Last Post: 10-05-2010, 06:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums