ARRAY(0x5d5dcb8)
I have a problem in a setfocus comm...
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What is interesting here?
• Duels
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Register!

QAIX > MS Access database development > I have a problem in a setfocus comm... 10 November 2008 15:26:29

  Top users: 
  Recent blog posts: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Модератор:

I have a problem in a setfocus comm...

Guest 13 October 2008 10:41:21
 I have a problem in a setfocus command. Can any1 help? Any advice is much appreciated

Private Sub btnFind_Click()
Dim strSQL, strSelect, strFrom, strTitle, strDescription, strSubmitter, strOwner As String

Set db = CurrentDb

strSelect = ("SELECT tblCore.[c_ID], tblCore.c_Title, tblCore.c_Descripti­on, tblCore.c_Submitter­, tblCore.c_CloseDate­, tblCore.c_LastUpdat­e, tblCore.c_Owner ")
strFrom = ("FROM tblCore ")

strTitle = ("WHERE (((tblCore.c_Title)­Like " & Chr(34) & "*" & Chr(34) & "&" & Chr(34) & [Forms]![frmCoreMain]![txtSearch] & Chr(34) & "&" & Chr(34) & "*" & Chr(34) & "));")

********** Continued

Select Case Me.optSearchCriteri­a.Value
Case 1
strSQL = strSelect & strFrom & strTitle
Case 2
strSQL = strSelect & strFrom & strDescription
Case 3
strSQL = strSelect & strFrom & strSubmitter
Case 4
strSQL = strSelect & strFrom & strOwner
End Select

Me!txtSearchDump.Se­tFocus 'Problem occurs here Run Time Error: cannot move focus to the control txtSearchDump'
Me!txtSearchDump.Te­xt = strSQL
CurrentDb.QueryDefs­("qryCoreSearch").SQ­L = strSQL
Me.lstCoreSearch.Re­query
End Sub
Add comment
Guest 10 November 2008 15:26:29 permanent link ]
 somehow there is a problem setting the focus on txtSearchDump
easy way not to set focus and
dont use .text at txtSearchDump

like this :


Me!txtSearchDump = strSQL
CurrentDb.QueryDefs­("qryCoreSearch").SQ­L = strSQL
Me.lstCoreSearch.Re­query
End Sub
Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или законы РФ. Ваш ip-адрес записывается.


QAIX > MS Access database development > I have a problem in a setfocus comm... 10 November 2008 15:26:29

see also:
[JBoss Portal] - Re: Portlet navigation…
[Installation, Configuration &…
[JBoss Seam] - Re: having problem with…
pass tests:
You and sex.
see also:
Eye-catching:Sony XPERIA X1 with its…
How to Get Videos from Youtube and Use…
How to Get Movie and Music…

  Copyright © 2001—2010 QAIX
Идея: Монашёв Михаил.
Авторами текстов, изображений и видео, размещённых на этой странице, являются пользователи сайта.
See Help and FAQ in the community support.qaix.com.
Write in the community about the bugs you have noticedbugs.qaix.com.
Write your offers and comments in the communities suggest.qaix.com.
Information for parents.
Пишите нам на .
If you would like to report an abuse of our service, such as a spam message, please .
Если Вы хотите пожаловаться на содержимое этой страницы, пожалуйста .