在将数据插入访问数据库时,如果出现这样的错误,我该怎么办? [英] What could I do when I get an error like this while inserting data into an access db?

查看:87
本文介绍了在将数据插入访问数据库时,如果出现这样的错误,我该怎么办?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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")





我尝试过:



我尝试使用VB



What I have tried:

I have tried inserting data into an access db using VB

推荐答案

将数据插入到访问数据库中。您需要使用所有参数调用AddtoCustomer,而不仅仅是单个参数。



通过上面的签名:

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

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



函数接收6个参数,返回字符串和应该像这样调用:




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

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


这篇关于在将数据插入访问数据库时,如果出现这样的错误,我该怎么办?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆