28. april 2002 - 13:22Der er
14 kommentarer og 1 løsning
Søgning efter records
Ønsker at kunne søge efter record på formular (frmInstruktoer)
Har oprettet ubundet tekstfelt(txtSoegNavn) og har indsat flg. på "Efter opdatering" _____________________________________________ Private Sub txtSoegNavn_AfterUpdate()
I dette særtema ser vi på, hvordan cloud og AI bliver fundamentet for virksomhedernes digitale forretning, og hvordan de nye muligheder for automatisering og forretningsværdi kan udnyttes uden at miste overblik, sikkerhed og menneskelig kontrol.
_____________________________________________________ Private Sub txtSoegNavn_AfterUpdate() 'Søg efter instruktør hvis instruktør ikke findes fremkommer msgBox On Error GoTo ErrHandler
Dim rs As Object
Set rs = Me.Recordset.Clone rs.FindFirst "[Navn] = '" & Me!txtSoegNavn & "'" If Not rs.EOF Then Me.Bookmark = rs.Bookmark
No you dont owe me extra for the combo. If you look at the code from the combo it is very much like thatused in the txtSoegNavn field. Actually I got the combo box wizard to create this for me. For some reason it doesnt work in your form, I think its because you are using an SQL statment as the record source. Anyway I just made another form and created a combo with the wizard there then stole the code!
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.