Forum

VBA User Form Gener...
 
Notifications
Clear all

VBA User Form Generating Strange Characters

3 Posts
2 Users
0 Reactions
82 Views
(@jesmith7777777)
Posts: 4
Active Member
Topic starter
 

Hi

I am a novice to VBA.  I followed a video to create a userform to do data entry.  This is supposed to lead to some analysis later.  The problem is that text boxes and combo boxes are generating their own input - garbage.

I have no idea why this happens since the data is validated.  The following were corrupted:

Intended.JPGLast Name, PCA Level of Service, Service Coordinator and Informal Contact Support Status.  The data was changed to 1677215

I've uploaded the file with the code

 
Posted : 17/03/2020 10:19 am
(@debaser)
Posts: 836
Member Moderator
 

In your ValidEntry function you have code like this:

 

.txtLastName.Text = vbWhite

which will put the value of the vbWhite constant (which is 1677215) in the specified control. You have several instances of this.

 
Posted : 17/03/2020 3:37 pm
(@jesmith7777777)
Posts: 4
Active Member
Topic starter
 

Thank you very,very much.

 

I totally overlooked that part.

 

Blessings!

 
Posted : 17/03/2020 7:38 pm
Share: