![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi Everyone I have 2 memo fields 1. txtBuyerAddressEbay 2. txtBuyerAddress In txtBuyerAddressEbay the address appears thus: Bert Smith 1 Buddy Holly Drive Harlow Essex CM1 1BT United Kingdom On the double click event I am using: Me!txtBuyerFirstLastName = Me!txtBuyerFirstLastName But what I would like to do is remove the customer name so that it appears with just the address. Like this: 1 Buddy Holly Drive Harlow Essex CM1 1BT United Kingdom Grateful for anyhelp |
#3
| |||
| |||
|
|
Hi Everyone I have 2 memo fields 1. txtBuyerAddressEbay 2. txtBuyerAddress In txtBuyerAddressEbay the address appears thus: Bert Smith 1 Buddy Holly Drive Harlow Essex CM1 1BT United Kingdom On the double click event I am using: Me!txtBuyerFirstLastName = Me!txtBuyerFirstLastName But what I would like to do is remove the customer name so that it appears with just the address. Like this: 1 Buddy Holly Drive Harlow Essex CM1 1BT United Kingdom Grateful for anyhelp |
#4
| |||
| |||
|
|
Are you saying that you have a field (memo, named txtBuyerAddressEbay) that contains more than one 'kind' of fact. *If so, your data structure violates the database design principal of "one field, one fact". |
#5
| |||
| |||
|
|
bobdydd wrote: Hi Everyone I have 2 memo fields 1. txtBuyerAddressEbay 2. txtBuyerAddress In txtBuyerAddressEbay the address appears thus: Bert Smith 1 Buddy Holly Drive Harlow Essex CM1 1BT United Kingdom On the double click event I am using: Me!txtBuyerFirstLastName = Me!txtBuyerFirstLastName But what I would like to do is remove the customer name so that it appears with just the address. Like this: 1 Buddy Holly Drive Harlow Essex CM1 1BT United Kingdom Grateful for anyhelp Sub MemoAR() Dim s As String Dim ar As Variant Dim intFor As Integer s = "Bert Smith" & vbNewLine & _ "1 Buddy Holly Drive" & vbNewLine & _ "Harlow" & vbNewLine & _ "Essex CM1 1BT" & vbNewLine & _ "United Kingdom" ar = Split(s, vbNewLine) MsgBox "First element index is " & LBound(ar) & vbNewLine & _ "last element index is " & UBound(ar) 'start at second element s = "" For intFor = (LBound(ar) + 1) To UBound(ar) s = s & ar(intFor) & vbNewLine Next MsgBox s End Sub |
#6
| |||
| |||
|
|
Hi Everyone I have 2 memo fields 1. txtBuyerAddressEbay 2. txtBuyerAddress In txtBuyerAddressEbay the address appears thus: Bert Smith 1 Buddy Holly Drive Harlow Essex CM1 1BT United Kingdom On the double click event I am using: Me!txtBuyerFirstLastName = Me!txtBuyerFirstLastName But what I would like to do is remove the customer name so that it appears with just the address. Like this: 1 Buddy Holly Drive Harlow Essex CM1 1BT United Kingdom Grateful for anyhelp |
#7
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |