Click here to Skip to main content
15,895,370 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. 

Compiler Error Message: BC30455: Argument not specified for parameter 'Address' of 'Public Function AddtoCustomer(FirstName As String, LastName As String, Address As String, Gender As String, Email As String, Password As String) As String'.

Source Error:


Line 13:     Sub Button_Click(sender As Object, e As EventArgs)
Line 14:     dim rows as String
Line 15:     rows=AddtoCustomer("Firstname.text")
Line 16:     rows=AddtoCustomer("Lastname.text")
Line 17:     rows=AddtoCustomer("Address.text")


What I have tried:

I have tried inserting data into an access db using VB
Posted
Updated 5-Apr-16 20:26pm
v2
Comments
PIEBALDconsult 5-Apr-16 19:16pm    
Can you provide the code for AddtoCustomer ?

1 solution

You need to call AddtoCustomer with all the parameters not only single one.

By the signature above:
VB
Public Function AddtoCustomer(FirstName As String, LastName As String, Address As String, Gender As String, Email As String, Password As String) As String

the function receives 6 parameters, returns string and should be called like this:

VB
Dim rows as String = AddtoCustomer("Sinisa", "Hajnal", "My address 32", "M", "my-email@yes.no", "***")
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900