Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / April 2005

Tip: Looking for answers? Try searching our database.

Field up date only put in part of data

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dbl - 09 Apr 2005 17:39 GMT
Hi I have the following which works but it will not put in the vehicle make,
it just puts in the model.

What am I doing wrong?

Private Sub Registration_Number_AfterUpdate()

Dim ExistingVMake As Variant
Dim ExistingVModel As Variant

ExistingVMake = DLookup("[txtVehicleMake]", "tblRegNumbers", "[txtRegNo]='"
& Me.Registration_Number & "'")
ExistingVMake = DLookup("[txtVehicleModel]", "tblRegNumbers", "[txtRegNo]='"
& Me.Registration_Number & "'")

If Not IsNull(ExistingReg) Then

Me.Make___Model_of_Car = ExistingVMake & ExistingVModel

End If
End Sub

If I take out the & ExistingVModel it puts in the make, how do I get it to
put in the make and model?

Thanks for your help

Bob
dbl - 09 Apr 2005 17:48 GMT
I have sorted it.

Thanks Bob

> Hi I have the following which works but it will not put in the vehicle
> make, it just puts in the model.
[quoted text clipped - 23 lines]
>
> Bob
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.