×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

How to avoid a browse window between clicking in a listbox and updating a grid

How to avoid a browse window between clicking in a listbox and updating a grid

How to avoid a browse window between clicking in a listbox and updating a grid

(OP)

I have a form with a list box populated with many last names (surnames) and a grid.
If I click on a last name in the list box, then
I want to see all people in the grid who have the same last name (with different first names).


CODE --> grid

*Click on a surname.
STORE Nachname TO mnachname


SELECT verwandte

thisform.TEXTGEBORENE.value = GEBORENE
thisform.TEXTGEBURT.value = GEBOREN
thisform.TEXTSTERBEDATUM.value = GESTORBEN
thisform.TEXTIMALTERVON.value = IMALTERVON
thisform.TEXTWAEREHEUTE.value = WAEREHEUTE
thisform.TEXTHINWEIS.value = HINWEIS

Thisform.label1.caption = "geborene"
Thisform.label2.caption = "Geburtsdatum"
Thisform.label3.caption = "Sterbedatum"
Thisform.label4.caption = "im Alter von:"
Thisform.label5.caption = "Alter"
Thisform.label6.caption = "Hinweis"

*Show a grid where all surnames and person are shown who own the same surname 


thisform.grid1.RecordSource = "select * from verwandte where nachname = mnachname"
thisform.grid1.RecordSourcetype = 4

*works - however I always see a Browse-Window before the grid is populated.
*Why? 

How can I avoid that - before the form with the grid is shown, always a browse-window is visible?

Thanks
Klaus

Peace worldwide - it starts here...

RE: How to avoid a browse window between clicking in a listbox and updating a grid


change the statement

thisform.grid1.RecordSource = "select * from verwandte where nachname = mnachname"

to

thisform.grid1.RecordSource = "select * from verwandte where nachname = mnachname into cursor cursorname"

RE: How to avoid a browse window between clicking in a listbox and updating a grid

(OP)
Thank you very much, mm000 !!
It can all be so simple, but only if you know how simple it is.

Greetings from Germany
Klaus

Peace worldwide - it starts here...

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close